Skip to content

Commit

Permalink
lint: Remove usused nolint, should somehow tell about decode.Copy
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Sep 14, 2021
1 parent 776a6b3 commit 13d5cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion format/bzip2/bzip2.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func gzDecode(d *decode.D, in interface{}) interface{} {
deflateR := bzip2.NewReader(compressedBB)
uncompressed := &bytes.Buffer{}
crc32W := crc32.NewIEEE()
if _, err := decode.Copy(d, io.MultiWriter(uncompressed, crc32W), deflateR); err != nil { //nolint:gosec
if _, err := decode.Copy(d, io.MultiWriter(uncompressed, crc32W), deflateR); err != nil {
d.Invalid(err.Error())
}
// calculatedCRC32 := crc32W.Sum(nil)
Expand Down

0 comments on commit 13d5cbd

Please sign in to comment.