mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
modernizes for loop in cmd/, internal/ (#21309)
This commit is contained in:
@@ -1481,7 +1481,7 @@ func (er erasureObjects) CompleteMultipartUpload(ctx context.Context, bucket str
|
||||
}
|
||||
}
|
||||
|
||||
for i := 0; i < len(onlineDisks); i++ {
|
||||
for i := range len(onlineDisks) {
|
||||
if onlineDisks[i] != nil && onlineDisks[i].IsOnline() {
|
||||
// Object info is the same in all disks, so we can pick
|
||||
// the first meta from online disk
|
||||
|
||||
Reference in New Issue
Block a user