mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
modernizes for loop in cmd/, internal/ (#21309)
This commit is contained in:
+1
-1
@@ -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