chore(all): replace map key deletion loop with clear() (#21082)

This commit is contained in:
Name
2025-04-01 23:28:06 +08:00
committed by GitHub
parent e0c8738230
commit b1bc641105
5 changed files with 6 additions and 18 deletions

View File

@@ -3373,9 +3373,7 @@ func (s *xlStorage) CleanAbandonedData(ctx context.Context, volume string, path
}
// Clear and repopulate
for k := range foundDirs {
delete(foundDirs, k)
}
clear(foundDirs)
// Populate into map
for _, k := range dirs {