Skip to content

Commit

Permalink
Merge pull request #7 from therealpaulgg/useless-check
Browse files Browse the repository at this point in the history
remove useless error check
  • Loading branch information
therealpaulgg authored Mar 1, 2023
2 parents c271f9a + 682964c commit b26ee4a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/utils/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ func EncryptWithMasterKey(plaintext []byte, key []byte) ([]byte, error) {
return nil, err
}
outBuf := gcm.Seal(nonce, nonce, plaintext, nil)
if err != nil {
return nil, err
}
return outBuf, err
return outBuf, nil
}

func Encrypt(b []byte) ([]byte, error) {
Expand Down

0 comments on commit b26ee4a

Please sign in to comment.