Skip to content
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 unhandled errors #97

Merged
merged 2 commits into from May 24, 2021
Merged

Fix unhandled errors #97

merged 2 commits into from May 24, 2021

Conversation

tomhjp
Copy link
Collaborator

@tomhjp tomhjp commented May 18, 2021

#89 spotted un unhandled error. The error path should be pretty unlikely which is why I guess this was uncaught until now, but it's a pretty ugly bug nonetheless, so I've added some extra linters to our CI.

The ineffassign linter catches this prior to fixing (as well as one additional case), and I also added errcheck (which caught an additional two), and unused is unrelated but I added it as it seems like a nice and uncontroversial check to have.

@tomhjp tomhjp merged commit ff21e5c into master May 24, 2021
@tomhjp tomhjp deleted the add-err-check-linters branch May 24, 2021 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants