mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
modernizes for loop in cmd/, internal/ (#21309)
This commit is contained in:
@@ -149,7 +149,7 @@ func (z *erasureServerPools) findIndex(index int) int {
|
||||
if z.rebalMeta == nil {
|
||||
return 0
|
||||
}
|
||||
for i := 0; i < len(z.rebalMeta.PoolStats); i++ {
|
||||
for i := range len(z.rebalMeta.PoolStats) {
|
||||
if i == index {
|
||||
return index
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user