refactor: remove some empty lines

Signed-off-by: xujie <mikawudi@qq.com>
pull/3455/head
xujie 4 years ago
parent 74b41c2ce6
commit 68c271941f

@ -131,21 +131,18 @@ abstract class ConnectionPool<T extends RedisConnection> {
if (initPromise.isDone()) { if (initPromise.isDone()) {
return; return;
} }
for (RedisConnection connection : entry.getAllConnections()) { for (RedisConnection connection : entry.getAllConnections()) {
if (!connection.isClosed()) { if (!connection.isClosed()) {
connection.closeAsync(); connection.closeAsync();
} }
} }
entry.getAllConnections().clear(); entry.getAllConnections().clear();
for (RedisConnection connection : entry.getAllSubscribeConnections()) { for (RedisConnection connection : entry.getAllSubscribeConnections()) {
if (!connection.isClosed()) { if (!connection.isClosed()) {
connection.closeAsync(); connection.closeAsync();
} }
} }
entry.getAllSubscribeConnections().clear(); entry.getAllSubscribeConnections().clear();
int totalInitializedConnections = minimumIdleSize - initializedConnections.get(); int totalInitializedConnections = minimumIdleSize - initializedConnections.get();
String errorMsg; String errorMsg;
if (totalInitializedConnections == 0) { if (totalInitializedConnections == 0) {

Loading…
Cancel
Save