mirror of
https://github.com/containerd/containerd.git
synced 2026-11-07 22:06:45 +00:00
fix redundant if ... error to make ci happy
Signed-off-by: Shukui Yang <yangshukui@huawei.com>
This commit is contained in:
1 parent
8ea9c7da0a
commit
b7b1be17ef
2 files changed
+2
-8
No files matched your search
+1
-4
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user