-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Handle errcheck warnings #932
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.
I have a few pointers on this that I think need solving before merge.
@canelohill I had to manually resolve a conflict. Can you check and make sure that fits what you think should happen? |
The PR looks good after merges. |
@canelohill can’t seem to merge it says there’s conflicts |
The package ignored errors from net.Conn Set*Deadline in a few places. Update the package to return these errors to the caller. Ignore all other errors reported by errcheck. These errors are safe to ignore because - The function is making a best effort to cleanup while handling another error. - The function call is guaranteed to succeed. - The error is ignored in a test.
The PR should merge clean now. |
Cheers thanks for that. I was surprised cause usually I get the opportunity to resolve conflicts manually but this time there was no option. |
What type of PR is this? (check all applicable)
Description
The package ignored errors from net.Conn Set*Deadline in a few places. Update the package to return these errors to the caller.
Ignore all other errors reported by errcheck. These errors are safe to ignore because
Related Tickets & Documents
Added/updated tests?
Run verifications and test
make verify
is passingmake test
is passing