-
Notifications
You must be signed in to change notification settings - Fork 213
Enable staticcheck #604
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
Enable staticcheck #604
Conversation
ea8c018 to
8852bb7
Compare
|
/hold cancel |
| klog.Fatalf("error: %v", err) | ||
| } | ||
| fmt.Printf(image) | ||
| fmt.Print(image) |
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 is no formatting of the strings required here.
| return nil, err | ||
| } | ||
|
|
||
| if &proxy.Spec != nil { |
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.
proxy is referenced and compared to nil. Since proxy is a value type this check will never be false.
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.
I didn't change the check. I removed it and what you see now is the inner-check. The outer-check was superfluous for the reason mentioned above.
|
/assign @LalatenduMohanty |
|
/retest |
LalatenduMohanty
left a comment
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
Signed-off-by: Arjun Naik <[email protected]>
8852bb7 to
90767ce
Compare
|
/override ci/prow/e2e-agnostic-upgrade |
|
@vrutkovs: Overrode contexts on behalf of vrutkovs: ci/prow/e2e-agnostic-upgrade DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: arjunrn, LalatenduMohanty, vrutkovs The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Depends on #598 and #602
staticcheck is a code analysis tool which detects common mistakes in go.