Skip to content

Commit

Permalink
style(specgen): omit nil check
Browse files Browse the repository at this point in the history
len(nil) == 0

[NO NEW TESTS NEEDED]

Signed-off-by: xtex <[email protected]>
  • Loading branch information
xtexChooser committed Jun 11, 2023
1 parent 53834ef commit d734fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/specgen/generate/oci_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d734fcb

Please sign in to comment.