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 golangcilint errors on err variable reassignment #88

Merged
merged 1 commit into from Apr 22, 2022

Conversation

paskal
Copy link
Sponsor Collaborator

@paskal paskal commented Apr 22, 2022

Error:

sloppyReassign: re-assignment to `err` can be replaced with `err := tmpFile.Close()` (gocritic)

Also, I noticed that error is not attributed to the right line, a change in ci.yaml fixes that.

@paskal paskal requested a review from umputun as a code owner April 22, 2022 07:03
Also, fix golangci-lint errors formatting for GitHub.
@umputun umputun merged commit 2b39932 into master Apr 22, 2022
@umputun umputun deleted the paskal/fix_golangcilint branch April 22, 2022 07:23
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