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: check r.err != nil but return a nil value error err #13120

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

alingse
Copy link
Contributor

@alingse alingse commented Dec 15, 2024

the err has been checked. so it's value must be nil, so should return r.err

I have an idea to detect code that returns a non-relevant nilness error bug. I checked the top 1000 GitHub Go repositories and found this, all result listed in alingse/sundrylint#4

@AskAlexSharov AskAlexSharov enabled auto-merge (squash) December 16, 2024 03:55
@AskAlexSharov AskAlexSharov merged commit 4590301 into erigontech:main Dec 17, 2024
11 checks passed
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.

2 participants