Skip to content

Commit

Permalink
generate: remove redundant content
Browse files Browse the repository at this point in the history
Signed-off-by: zhouhao <[email protected]>
  • Loading branch information
zhouhao committed Sep 19, 2017
1 parent 567f1aa commit 1a9532e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1089,11 +1089,7 @@ func (g *Generator) DropProcessCapability(c string) error {
}
}

if err := validate.CapValid(cp, false); err != nil {
return err
}

return nil
return validate.CapValid(cp, false)
}

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

0 comments on commit 1a9532e

Please sign in to comment.