From 682964cf969ddf15f8a6e289a3134d68f896eeaf Mon Sep 17 00:00:00 2001 From: therealpaulgg Date: Tue, 28 Feb 2023 19:26:49 -0700 Subject: [PATCH] remove useless error check --- pkg/utils/encrypt.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/utils/encrypt.go b/pkg/utils/encrypt.go index b7c60fc..73b4ca4 100644 --- a/pkg/utils/encrypt.go +++ b/pkg/utils/encrypt.go @@ -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) {