Skip to content

Commit

Permalink
Remove unneeded check
Browse files Browse the repository at this point in the history
adminClient doeesn't change in the try block so no
check needed in the finally block.
  • Loading branch information
voldemort committed Jun 20, 2013
1 parent 7daac20 commit c809fba
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -539,9 +539,8 @@ public List<String> call() throws Exception {

}
} finally {
if(adminClient != null) {
adminClient.close();
}
adminClient.close();

}
}
} catch(Exception e) {
Expand Down Expand Up @@ -575,9 +574,7 @@ public List<String> call() throws Exception {

}
} finally {
if(adminClient != null) {
adminClient.close();
}
adminClient.close();
}
}
throw e;
Expand Down

0 comments on commit c809fba

Please sign in to comment.