mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-13 09:06:41 +00:00
chore: fix golangci-lint error G602 in caddyhttp (#7334)
This commit is contained in:
parent
ddec1838b3
commit
895b56063a
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ func encodeSize(b []byte, size uint32) int {
|
|||
binary.BigEndian.PutUint32(b, size)
|
||||
return 4
|
||||
}
|
||||
b[0] = byte(size)
|
||||
b[0] = byte(size) //nolint:gosec // false positive; b is made 8 bytes long, then this function is always called with b being at least 4 or 1 byte long
|
||||
return 1
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue