diff --git a/consul/client.go b/consul/client.go index 7f7aa5f913..2e8ce9f03f 100644 --- a/consul/client.go +++ b/consul/client.go @@ -390,9 +390,7 @@ func (c *Client) RPC(method string, args interface{}, reply interface{}) error { var server *serverParts if c.lastServer != nil && lastRPCTime < clientRPCConnMaxIdle { server = c.lastServer - if server != nil { - goto TRY_RPC - } + goto TRY_RPC } // Bail if we can't find any servers