mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
chore(all): replace map key deletion loop with clear() (#21082)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user