mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 07:37:07 +08:00
enable errcheck
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user