update golangci-lint (#554)

This commit is contained in:
Alessandro Ros
2024-04-28 18:20:25 +02:00
committed by GitHub
parent 2e32d1bf6e
commit 363b48e632
16 changed files with 1087 additions and 1062 deletions

View File

@@ -45,7 +45,7 @@ func (h *Header) unmarshal(br *bufio.Reader) error {
}
if byt == '\r' {
err := readByteEqual(br, '\n')
err = readByteEqual(br, '\n')
if err != nil {
return err
}
@@ -68,7 +68,7 @@ func (h *Header) unmarshal(br *bufio.Reader) error {
// https://tools.ietf.org/html/rfc2616
// The field value MAY be preceded by any amount of spaces
for {
byt, err := br.ReadByte()
byt, err = br.ReadByte()
if err != nil {
return err
}