Skip to content

Commit

Permalink
Remove unnecessary null check
Browse files Browse the repository at this point in the history
  • Loading branch information
jdyer1 committed Dec 16, 2024
1 parent f423bd2 commit 6176a99
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ protected Http2SolrClient(String serverBaseUrl, Builder builder) {
this.httpClient = createHttpClient(builder);
this.closeClient = true;
}
if (builder.listenerFactories != null) {
this.listenerFactory.addAll(builder.listenerFactories);
}
this.listenerFactory.addAll(builder.listenerFactories);
updateDefaultMimeTypeForParser();

this.httpClient.setFollowRedirects(Boolean.TRUE.equals(builder.followRedirects));
Expand Down

0 comments on commit 6176a99

Please sign in to comment.