We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7fdd52 commit 3019e84Copy full SHA for 3019e84
libcontainer/cgroups/utils.go
@@ -275,9 +275,7 @@ func RemovePaths(paths map[string]string) (err error) {
275
}
276
277
if len(paths) == 0 {
278
- //nolint:ineffassign,staticcheck // done to help garbage collecting: opencontainers/runc#2506
279
- // TODO: switch to clear once Go < 1.21 is not supported.
280
- paths = make(map[string]string)
+ clear(paths)
281
return nil
282
283
return fmt.Errorf("Failed to remove paths: %v", paths)
0 commit comments