mirror of
https://github.com/containers/podman.git
synced 2025-07-22 22:09:55 +08:00
style(specgen): omit nil check
len(nil) == 0 [NO NEW TESTS NEEDED] Signed-off-by: xtex <xtexchooser@duck.com>
This commit is contained in:
@ -57,7 +57,7 @@ func getCgroupPermissions(unmask []string) string {
|
|||||||
return ro
|
return ro
|
||||||
}
|
}
|
||||||
|
|
||||||
if unmask != nil && len(unmask) != 0 && unmask[0] == "ALL" {
|
if len(unmask) != 0 && unmask[0] == "ALL" {
|
||||||
return rw
|
return rw
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user