Skip to content

Commit b7b1be1

Browse files
author
Shukui Yang
committed
fix redundant if ... error to make ci happy
Signed-off-by: Shukui Yang <yangshukui@huawei.com>
1 parent 8ea9c7d commit b7b1be1

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

containerd/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,7 @@ func main() {
152152
if p := context.GlobalString("pprof-address"); len(p) > 0 {
153153
pprof.Enable(p)
154154
}
155-
if err := checkLimits(); err != nil {
156-
return err
157-
}
158-
return nil
155+
return checkLimits()
159156
}
160157

161158
app.Action = func(context *cli.Context) {

runtime/runtime_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ func setup() error {
2727
return err
2828
}
2929

30-
if err := os.MkdirAll(utils.BundlesRoot, 0755); err != nil {
31-
return err
32-
}
33-
return nil
30+
return os.MkdirAll(utils.BundlesRoot, 0755)
3431
}
3532

3633
// Creates the bundleDir with rootfs, io fifo dir and a default spec.

0 commit comments

Comments
 (0)