fix redundant if ... error to make ci happy

Signed-off-by: Shukui Yang <yangshukui@huawei.com>
This commit is contained in:
Shukui Yang committed 2017-10-21 20:38:28 +08:00
1 parent 8ea9c7da0a
commit b7b1be17ef
2 files changed
+2 -8

No files matched your search

+1 -4
View File
@@ -152,10 +152,7 @@ func main() {
if p := context.GlobalString("pprof-address"); len(p) > 0 {
pprof.Enable(p)
}
if err := checkLimits(); err != nil {
return err
}
return nil
return checkLimits()
}
app.Action = func(context *cli.Context) {
+1 -4
View File
@@ -27,10 +27,7 @@ func setup() error {
return err
}
if err := os.MkdirAll(utils.BundlesRoot, 0755); err != nil {
return err
}
return nil
return os.MkdirAll(utils.BundlesRoot, 0755)
}
// Creates the bundleDir with rootfs, io fifo dir and a default spec.