mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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 <github@gone.nl>
This commit is contained in:
parent
178af761b7
commit
ab599b5cdc
1 changed files with 1 additions and 0 deletions
|
@ -72,6 +72,7 @@ func (bp *bufferPool) Get() []byte {
|
|||
}
|
||||
|
||||
func (bp *bufferPool) Put(b []byte) {
|
||||
//nolint:staticcheck // TODO changing this to a pointer makes tests fail. Investigate if we should change or not (otherwise remove this TODO)
|
||||
bp.pool.Put(b)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue