mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +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
|
||||
}
|
||||
|
||||
if unmask != nil && len(unmask) != 0 && unmask[0] == "ALL" {
|
||||
if len(unmask) != 0 && unmask[0] == "ALL" {
|
||||
return rw
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user