Skip to content

Commit

Permalink
silence linter
Browse files Browse the repository at this point in the history
  • Loading branch information
lestrrat committed Mar 7, 2024
1 parent d01027d commit e4c1511
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions jwe/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
2 changes: 0 additions & 2 deletions jwe/jwe.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"bytes"
"crypto/ecdsa"
"crypto/rsa"
"fmt"
"io"
"io/ioutil"

Expand Down Expand Up @@ -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`)
}

Expand Down

0 comments on commit e4c1511

Please sign in to comment.