Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from tomwilkie/2-remove-cast
Browse files Browse the repository at this point in the history
Remove cast to kv.NotFoundError, you can't assume the error is one of these
  • Loading branch information
munnerz authored Nov 30, 2017
2 parents 4750773 + 69d781b commit 69b055c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kv/aws_kms/aws_kms.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (a *awsKMS) decrypt(cipherText []byte) ([]byte, error) {
func (a *awsKMS) Get(key string) ([]byte, error) {
cipherText, err := a.store.Get(key)
if err != nil {
return nil, err.(*kv.NotFoundError)
return nil, err
}

return a.decrypt(cipherText)
Expand Down

0 comments on commit 69b055c

Please sign in to comment.