chore: fix golangci-lint error G602 in caddyhttp (#7334)

This commit is contained in:
Cooper de Nicola
2025-11-02 19:04:55 -08:00
committed by GitHub
parent ddec1838b3
commit 895b56063a

View File

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