-
Notifications
You must be signed in to change notification settings - Fork 303
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
Fix errcheck linter for all non-test files #1813
Fix errcheck linter for all non-test files #1813
Conversation
/assign @kl52752 |
cmd/fuzzer/fuzzer.go
Outdated
default: | ||
flag.Usage() | ||
os.Exit(1) | ||
} | ||
|
||
// Suppress klog logging before flag.Parse() error. | ||
flag.CommandLine.Parse([]string{}) | ||
_ = flag.CommandLine.Parse([]string{}) |
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.
this hack does not make sense. Maybe you should disable Lint in this place?
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.
Disabled lint for .Parse
@@ -132,7 +132,7 @@ func NewController(ctx *ControllerContext) *Controller { | |||
} | |||
|
|||
func (c *Controller) Run(stopCh <-chan struct{}) { | |||
wait.PollUntil(5*time.Second, func() (bool, error) { | |||
_ = wait.PollUntil(5*time.Second, func() (bool, error) { |
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.
as above maybe you should disable lint in this place
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.
Disabled lint for .PollUntil
0cd5282
to
ba263af
Compare
Add handling errors where it was missing
ba263af
to
50fc64f
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kl52752, panslava The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Add handling errors where it was missing