diff --git a/jwe/compress.go b/jwe/compress.go index 53dbd2b5a..6956cabda 100644 --- a/jwe/compress.go +++ b/jwe/compress.go @@ -35,6 +35,7 @@ func uncompress(src []byte, maxBufferSize int64) ([]byte, error) { if readErr != nil { // if it got here, then readErr == io.EOF, we're done + //nolint:nilerr return dst.Bytes(), nil } } diff --git a/jwe/jwe.go b/jwe/jwe.go index ae0705ae5..95c48abd0 100644 --- a/jwe/jwe.go +++ b/jwe/jwe.go @@ -7,7 +7,6 @@ import ( "bytes" "crypto/ecdsa" "crypto/rsa" - "fmt" "io" "io/ioutil" @@ -256,7 +255,6 @@ func Decrypt(buf []byte, alg jwa.KeyEncryptionAlgorithm, key interface{}, option payload, err := doDecryptCtx(&ctx) if err != nil { - fmt.Printf("failed to decrypt: %s\n", err) return nil, errors.Wrap(err, `failed to decrypt message`) }