Remove unnecessary if state
This commit is contained in:
@@ -127,7 +127,6 @@ public class JedisSentinelPool extends Pool<Jedis> {
|
||||
try {
|
||||
jedis = new Jedis(hap.getHost(), hap.getPort());
|
||||
|
||||
if (master == null) {
|
||||
List<String> masterAddr = jedis
|
||||
.sentinelGetMasterAddrByName(masterName);
|
||||
|
||||
@@ -143,7 +142,6 @@ public class JedisSentinelPool extends Pool<Jedis> {
|
||||
master = toHostAndPort(masterAddr);
|
||||
log.fine("Found Redis master at " + master);
|
||||
break;
|
||||
}
|
||||
} catch (JedisConnectionException e) {
|
||||
log.warning("Cannot connect to sentinel running @ " + hap
|
||||
+ ". Trying next one.");
|
||||
|
||||
Reference in New Issue
Block a user