Skip to content

Commit

Permalink
silence linter
Browse files Browse the repository at this point in the history
For this particular case, we are aware that the error value is non-nil
but we also know that it's io.EOF
  • Loading branch information
lestrrat committed Mar 7, 2024
1 parent 17e2da9 commit cdfaccf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jwe/compress.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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

0 comments on commit cdfaccf

Please sign in to comment.