-
Notifications
You must be signed in to change notification settings - Fork 251
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
Solve errcheck
warnings (part 4)
#2003
Conversation
pkg/chunked/storage_linux.go
Outdated
defer c.zstdReader.Reset(nil) | ||
defer func() { | ||
if err := c.zstdReader.Reset(nil); err != nil { | ||
logrus.Warn(err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add at least a bit of context.
(Or, alternatively, return the error from appendCompressedStreamToFile
, because any future uses of zstdReader
would likely not work correctly if this ever failed.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Thanks!
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Honny1, mtrmac The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Jan Rodák <[email protected]>
… checked Signed-off-by: Jan Rodák <[email protected]>
Signed-off-by: Jan Rodák <[email protected]>
Signed-off-by: Jan Rodák <[email protected]>
Signed-off-by: Jan Rodák <[email protected]>
/lgtm |
This PR is one of several fixes of warnings found by
golangci
when theerrcheck
linter is enabled.Partially fixes: