Remove unnecessary if statement
This commit is contained in:
parent
a48296f5c0
commit
0073ab078d
|
@ -100,7 +100,6 @@ public class ElasticsearchAutoConfiguration implements DisposableBean {
|
||||||
if (logger.isInfoEnabled()) {
|
if (logger.isInfoEnabled()) {
|
||||||
logger.info("Closing Elasticsearch client");
|
logger.info("Closing Elasticsearch client");
|
||||||
}
|
}
|
||||||
if (this.releasable != null) {
|
|
||||||
try {
|
try {
|
||||||
this.releasable.close();
|
this.releasable.close();
|
||||||
}
|
}
|
||||||
|
@ -111,7 +110,6 @@ public class ElasticsearchAutoConfiguration implements DisposableBean {
|
||||||
this.releasable);
|
this.releasable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (final Exception ex) {
|
catch (final Exception ex) {
|
||||||
if (logger.isErrorEnabled()) {
|
if (logger.isErrorEnabled()) {
|
||||||
logger.error("Error closing Elasticsearch client: ", ex);
|
logger.error("Error closing Elasticsearch client: ", ex);
|
||||||
|
|
Loading…
Reference in New Issue