Skip to content

Commit e4c1511

Browse files
committed
silence linter
1 parent d01027d commit e4c1511

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

jwe/compress.go

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ func uncompress(src []byte, maxBufferSize int64) ([]byte, error) {
3535

3636
if readErr != nil {
3737
// if it got here, then readErr == io.EOF, we're done
38+
//nolint:nilerr
3839
return dst.Bytes(), nil
3940
}
4041
}

jwe/jwe.go

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"bytes"
88
"crypto/ecdsa"
99
"crypto/rsa"
10-
"fmt"
1110
"io"
1211
"io/ioutil"
1312

@@ -256,7 +255,6 @@ func Decrypt(buf []byte, alg jwa.KeyEncryptionAlgorithm, key interface{}, option
256255

257256
payload, err := doDecryptCtx(&ctx)
258257
if err != nil {
259-
fmt.Printf("failed to decrypt: %s\n", err)
260258
return nil, errors.Wrap(err, `failed to decrypt message`)
261259
}
262260

0 commit comments

Comments
 (0)