mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
pkg/sysinfo.newV2() remove redundant path.Clean()
path.Join() already does path.Clean(), and the opts.cg2GroupPath field is already cleaned as part of WithCgroup2GroupPath() Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -47,7 +47,7 @@ func newV2(quiet bool, options ...Opt) *SysInfo {
|
||||
applyPIDSCgroupInfoV2,
|
||||
applyDevicesCgroupInfoV2,
|
||||
}
|
||||
dirPath := path.Join("/sys/fs/cgroup", path.Clean(g))
|
||||
dirPath := path.Join("/sys/fs/cgroup", g)
|
||||
for _, o := range opsV2 {
|
||||
w := o(sysInfo, controllersM, dirPath)
|
||||
warnings = append(warnings, w...)
|
||||
|
||||
Reference in New Issue
Block a user