style(specgen): omit nil check

len(nil) == 0

[NO NEW TESTS NEEDED]

Signed-off-by: xtex <xtexchooser@duck.com>
This commit is contained in:
xtexChooser
2023-06-11 09:39:15 +08:00
committed by xtex
parent 53834ef0dc
commit d734fcbff2

View File

@ -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
}