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:
@@ -381,7 +381,7 @@ func refreshLock(ctx context.Context, ds *Dsync, id, source string, quorum int)
|
||||
lockNotFound, lockRefreshed := 0, 0
|
||||
done := false
|
||||
|
||||
for i := 0; i < len(restClnts); i++ {
|
||||
for range len(restClnts) {
|
||||
select {
|
||||
case refreshResult := <-ch:
|
||||
if refreshResult.offline {
|
||||
|
||||
Reference in New Issue
Block a user