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

Fixes errcheck errors pointed by golangci-lint #2782

Closed
wants to merge 1 commit into from

Conversation

diegoximenes
Copy link
Contributor

@diegoximenes diegoximenes commented Nov 11, 2024

errcheck errors are being generated by golangci-lint version 1.62.0.
Those errors were not being generated by previous golangci-lint versions.
This PR solves the issue.

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Nov 11, 2024
@diegoximenes diegoximenes changed the title nolint:errcheck Fixes errcheck errors pointed by golangci-lint Nov 11, 2024
@diegoximenes diegoximenes marked this pull request as ready for review November 11, 2024 14:47
Copy link
Member

@eljobe eljobe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I didn't see this before making: #2785

But, if we wanted to ignore these errors, why wouldn't we just remove this part: https://github.com/OffchainLabs/nitro/blob/master/.golangci.yml#L28-L31

I think we should either fix them with #2785 or disable them in the linter's config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants