Skip to content

Commit

Permalink
Drop redundant null check
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Walles committed Jan 25, 2021
1 parent 6e2f312 commit 5a4fdbd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/redis/clients/jedis/JedisClusterCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ public Jedis getConnection() {
} catch (JedisRedirectionException e) {
redirected = handleRedirection(connection, e);
} finally {
if (connection != null) {
releaseConnection(connection);
}
releaseConnection(connection);
}
}

Expand Down

0 comments on commit 5a4fdbd

Please sign in to comment.