Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit ab599b5

Browse files
committed
pkg/pools/pools.go: suppress SA6002: argument should be pointer-like for now
``` 13:06:14 pkg/pools/pools.go:75:13: SA6002: argument should be pointer-like to avoid allocations (staticcheck) 13:06:14 bp.pool.Put(b) ``` Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 178af76 commit ab599b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/pools/pools.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func (bp *bufferPool) Get() []byte {
7272
}
7373

7474
func (bp *bufferPool) Put(b []byte) {
75+
//nolint:staticcheck // TODO changing this to a pointer makes tests fail. Investigate if we should change or not (otherwise remove this TODO)
7576
bp.pool.Put(b)
7677
}
7778

0 commit comments

Comments
 (0)