Remove unnecessary if state

This commit is contained in:
Jungtaek Lim
2014-10-05 10:52:05 +09:00
parent c5336310bd
commit 9c296000a2

View File

@@ -127,7 +127,6 @@ public class JedisSentinelPool extends Pool<Jedis> {
try { try {
jedis = new Jedis(hap.getHost(), hap.getPort()); jedis = new Jedis(hap.getHost(), hap.getPort());
if (master == null) {
List<String> masterAddr = jedis List<String> masterAddr = jedis
.sentinelGetMasterAddrByName(masterName); .sentinelGetMasterAddrByName(masterName);
@@ -143,7 +142,6 @@ public class JedisSentinelPool extends Pool<Jedis> {
master = toHostAndPort(masterAddr); master = toHostAndPort(masterAddr);
log.fine("Found Redis master at " + master); log.fine("Found Redis master at " + master);
break; break;
}
} catch (JedisConnectionException e) { } catch (JedisConnectionException e) {
log.warning("Cannot connect to sentinel running @ " + hap log.warning("Cannot connect to sentinel running @ " + hap
+ ". Trying next one."); + ". Trying next one.");