mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-26 06:37:07 +00:00
style: fix remaining golangci-lint findings
This commit is contained in:
@@ -102,7 +102,7 @@ func (fs *FilesystemStorage) Put(ctx context.Context, key string, data io.Reader
|
||||
metrics.RecordStorageOperation("filesystem", "put", "error")
|
||||
return errors.Wrap(err, errors.ErrCodeStorageFailure, "failed to open storage root")
|
||||
}
|
||||
defer root.Close() // #nosec G307 -- Best-effort cleanup of opened storage root
|
||||
defer func() { _ = root.Close() }()
|
||||
|
||||
// Create directory
|
||||
if dir != "." {
|
||||
|
||||
Reference in New Issue
Block a user