mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
ci: bump golangci-lint to v2.9.0
Apparently, prealloc got much smarter in this version, so let's disable it for _test.go files as we're not really interested in micro-optimizations for the test code. The rest of its warnings is being fixed by the earlier commits. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -133,7 +133,6 @@ func (m *InMemoryManager) AvailableLocks() (*uint32, error) {
|
||||
// Get any locks that are presently being held.
|
||||
// Useful for debugging deadlocks.
|
||||
func (m *InMemoryManager) LocksHeld() ([]uint32, error) {
|
||||
//nolint:prealloc
|
||||
var locks []uint32
|
||||
|
||||
for _, lock := range m.locks {
|
||||
|
||||
Reference in New Issue
Block a user