-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Fix go vet issue in daemon/daemon.go #38497
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
daemon/daemon.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use c.Id
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can get the if from c
can't we?
In any case, this LGTM.
This fix fixes go vet issue: ``` daemon/daemon.go:273: loop variable id captured by func literal daemon/daemon.go:280: loop variable id captured by func literal ``` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Codecov Report
@@ Coverage Diff @@
## master #38497 +/- ##
=========================================
Coverage ? 36.62%
=========================================
Files ? 608
Lines ? 45174
Branches ? 0
=========================================
Hits ? 16545
Misses ? 26340
Partials ? 2289 |
@cpuguy83 @AkihiroSuda The PR has been updated. |
LGTM. (late) |
Th 8000 is fix fixes go vet issue:
Signed-off-by: Yong Tang yong.tang.github@outlook.com