1
0
mirror of https://github.com/redis/go-redis.git synced 2025-08-07 12:42:55 +03:00

simplify if condition

This commit is contained in:
yyoshiki41
2016-10-13 17:27:43 +09:00
parent 11333cbc26
commit 236c021d4c

View File

@@ -653,7 +653,9 @@ func (c *ClusterClient) execClusterCmds(
cmd.reset()
failedCmds[nil] = append(failedCmds[nil], cmds[i:]...)
break
} else if moved, ask, addr := internal.IsMovedError(err); moved {
}
moved, ask, addr := internal.IsMovedError(err)
if moved {
c.lazyReloadSlots()
cmd.reset()
node, err := c.nodeByAddr(addr)