enable errcheck

This commit is contained in:
aler9
2023-08-13 15:21:13 +02:00
committed by Alessandro Ros
parent 08ab6c6ed2
commit 18ddae4c50
63 changed files with 344 additions and 203 deletions

View File

@@ -26,7 +26,7 @@ func readBytesLimited(rb *bufio.Reader, delim byte, n int) ([]byte, error) {
}
if byts[len(byts)-1] == delim {
rb.Discard(len(byts))
rb.Discard(len(byts)) //nolint:errcheck
return byts, nil
}
}