From e4c1511301301a4481cc3cd3f5c6353a34be3e43 Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Thu, 7 Mar 2024 10:40:45 +0900 Subject: [PATCH] silence linter --- jwe/compress.go | 1 + jwe/jwe.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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`) }