Skip to content

Commit

Permalink
Remove unnecessary parentheses.
Browse files Browse the repository at this point in the history
  • Loading branch information
smarsching committed Mar 18, 2024
1 parent a1838d4 commit 0e9e1cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/phoebus/channelfinder/ElasticConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ public HttpAsyncClientBuilder customizeHttpClient(HttpAsyncClientBuilder httpCli

private List<String> getHostUrls() {
String localHostUrls = this.hostUrls;
boolean hostIsDefault = (host.equals("localhost"));
boolean hostUrlsIsDefault = (localHostUrls.equals("http://localhost:9200"));
boolean hostIsDefault = host.equals("localhost");
boolean hostUrlsIsDefault = localHostUrls.equals("http://localhost:9200");
boolean portIsDefault = (port == 9200);
if (hostUrlsIsDefault) {
if (!hostIsDefault || !portIsDefault) {
Expand Down

0 comments on commit 0e9e1cf

Please sign in to comment.