Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Commit 7a31986

Browse files
committed
Correct resource location override logic.
1 parent ff4f3a8 commit 7a31986

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/org/carrot2/elasticsearch/ClusteringContext.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ protected void doStart() throws ElasticsearchException {
8686

8787
LanguageComponentsLoader loader = LanguageComponents.loader();
8888

89-
if (resourceLocations.isEmpty()) {
90-
for (Path p : resourceLocations) {
91-
logger.info("Clustering algorithm resources first looked up relative to: {}", p);
92-
}
89+
if (!resourceLocations.isEmpty()) {
90+
logger.info("Clustering algorithm resources first looked up relative to: {}",
91+
resourceLocations);
9392
loader.withResourceLookup(
9493
(provider) ->
9594
new ChainedResourceLookup(

0 commit comments

Comments
 (0)