From cdfaccf255e2374ef92dd3bd4a0685471e2d7f0a Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Thu, 7 Mar 2024 10:29:36 +0900 Subject: [PATCH] silence linter For this particular case, we are aware that the error value is non-nil but we also know that it's io.EOF --- jwe/compress.go | 1 + 1 file changed, 1 insertion(+) diff --git a/jwe/compress.go b/jwe/compress.go index bc55841bb..45b666132 100644 --- a/jwe/compress.go +++ b/jwe/compress.go @@ -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 } }