Skip to content

Commit a99ecc9

Browse files
committed
libct/cg/utils: silence a linter warning
> libcontainer/cgroups/utils.go:282:4: SA4006: this value of `paths` is never used (staticcheck) > paths = make(map[string]string) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent bd013b6 commit a99ecc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcontainer/cgroups/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ func RemovePaths(paths map[string]string) (err error) {
278278
}
279279
}
280280
if len(paths) == 0 {
281-
//nolint:ineffassign // done to help garbage collecting: opencontainers/runc#2506
281+
//nolint:ineffassign,staticcheck // done to help garbage collecting: opencontainers/runc#2506
282282
paths = make(map[string]string)
283283
return nil
284284
}

0 commit comments

Comments
 (0)