fix: linter issue#2948
Conversation
229d872 to
5e94e30
Compare
megacheck, gosimple and unused has been deprecated and subsumed by staticcheck. And staticcheck also has been upgraded. we need to update code for the linter issue. close: containerd#2945 Signed-off-by: Wei Fu <[email protected]>
5e94e30 to
132ee9b
Compare
| for s := range signals { | ||
| switch s { | ||
| case os.Interrupt: | ||
| break |
There was a problem hiding this comment.
the original one doesn't break out of an outer loop so that I remove the break statement here
Codecov Report
@@ Coverage Diff @@
## master #2948 +/- ##
==========================================
+ Coverage 44.02% 44.02% +<.01%
==========================================
Files 102 102
Lines 10870 10862 -8
==========================================
- Hits 4785 4782 -3
+ Misses 5351 5347 -4
+ Partials 734 733 -1
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #2948 +/- ##
==========================================
+ Coverage 44.02% 44.02% +<.01%
==========================================
Files 102 102
Lines 10870 10862 -8
==========================================
- Hits 4785 4782 -3
+ Misses 5351 5347 -4
+ Partials 734 733 -1
Continue to review full report at Codecov.
|
estesp
left a comment
There was a problem hiding this comment.
LGTM - all these changes look reasonable to me
|
LGTM |
megacheck, gosimple and unused has been deprecated and subsumed by
staticcheck. And staticcheck also has been upgraded. we need to update
code for the linter issue.
close: #2945
Signed-off-by: Wei Fu [email protected]