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

Check error on deferred file.Close #143

Closed
MaxMcAdam opened this issue Feb 17, 2023 · 1 comment
Closed

Check error on deferred file.Close #143

MaxMcAdam opened this issue Feb 17, 2023 · 1 comment
Assignees
Labels
bug Something isn't working p3 PR submitted

Comments

@MaxMcAdam
Copy link
Contributor

file.Close() can return an error. This error should be checked even when the close is deferred.

@MaxMcAdam MaxMcAdam added p3 bug Something isn't working labels Feb 17, 2023
@bencourliss
Copy link
Member

See securego/gosec#512 (comment) for a potential way to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p3 PR submitted
Projects
None yet
Development

No branches or pull requests

3 participants