1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 09:56:07 +03:00

lint: Remove usused nolint, should somehow tell about decode.Copy

This commit is contained in:
Mattias Wadman 2021-09-14 19:00:05 +02:00
parent 776a6b3136
commit 13d5cbd81b

View File

@ -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)