style: fix remaining golangci-lint findings

This commit is contained in:
2026-11-23 01:21:16 +00:00
parent 1fefe03e8f
commit ea00fac0fe
6 changed files with 50 additions and 10 deletions
+1 -1
View File
@@ -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 != "." {