Skip to content

Commit 1a9532e

Browse files
author
zhouhao
committed
generate: remove redundant content
Signed-off-by: zhouhao <[email protected]>
1 parent 567f1aa commit 1a9532e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

generate/generate.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -1089,11 +1089,7 @@ func (g *Generator) DropProcessCapability(c string) error {
10891089
}
10901090
}
10911091

1092-
if err := validate.CapValid(cp, false); err != nil {
1093-
return err
1094-
}
1095-
1096-
return nil
1092+
return validate.CapValid(cp, false)
10971093
}
10981094

10991095
func mapStrToNamespace(ns string, path string) (rspec.LinuxNamespace, error) {

0 commit comments

Comments
 (0)