Remove unnecessary if statement

This commit is contained in:
izeye 2015-02-26 14:31:48 +09:00 committed by Stephane Nicoll
parent a48296f5c0
commit 0073ab078d
1 changed files with 8 additions and 10 deletions

View File

@ -100,7 +100,6 @@ public class ElasticsearchAutoConfiguration implements DisposableBean {
if (logger.isInfoEnabled()) {
logger.info("Closing Elasticsearch client");
}
if (this.releasable != null) {
try {
this.releasable.close();
}
@ -111,7 +110,6 @@ public class ElasticsearchAutoConfiguration implements DisposableBean {
this.releasable);
}
}
}
catch (final Exception ex) {
if (logger.isErrorEnabled()) {
logger.error("Error closing Elasticsearch client: ", ex);