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:
@@ -98,7 +98,7 @@ func fmtGenMain(ctxt *cli.Context) {
|
||||
setCount, setDriveCount := pool.SetCount, pool.DrivesPerSet
|
||||
format := newFormatErasureV3(setCount, setDriveCount)
|
||||
format.ID = deploymentID
|
||||
for i := 0; i < setCount; i++ { // for each erasure set
|
||||
for i := range setCount { // for each erasure set
|
||||
for j := 0; j < setDriveCount; j++ {
|
||||
newFormat := format.Clone()
|
||||
newFormat.Erasure.This = format.Erasure.Sets[i][j]
|
||||
|
||||
Reference in New Issue
Block a user