Skip to content

Commit 7633185

Browse files
committed
*: format 'for range' statement
1 parent b532c55 commit 7633185

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/utils/redis/sentinel.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ func (s *Sentinel) monitorGroupsCommand(client *Client, sentniel string, config
433433
client.conn.Flush()
434434
}
435435
}()
436-
for _ = range groups {
436+
for range groups {
437437
_, err := client.Receive()
438438
if err != nil {
439439
return errors.Trace(err)
@@ -466,7 +466,7 @@ func (s *Sentinel) monitorGroupsCommand(client *Client, sentniel string, config
466466
client.conn.Flush()
467467
}
468468
}()
469-
for _ = range groups {
469+
for range groups {
470470
_, err := client.Receive()
471471
if err != nil {
472472
return errors.Trace(err)

0 commit comments

Comments
 (0)