Skip to content

Commit 006731a

Browse files
author
Johan Walles
committed
Drop redundant null check
1 parent a396f31 commit 006731a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/redis/clients/jedis/JedisClusterCommand.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ public Jedis getConnection() {
110110
} catch (JedisRedirectionException e) {
111111
redirected = handleRedirection(connection, e);
112112
} finally {
113-
if (connection != null) {
114-
releaseConnection(connection);
115-
}
113+
releaseConnection(connection);
116114
}
117115
}
118116

0 commit comments

Comments
 (0)