Skip to content

Commit 96654dd

Browse files
committed
comment
1 parent 734a6fa commit 96654dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/GeoIpDownloaderTaskExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public void clusterChanged(ClusterChangedEvent event) {
253253
}
254254

255255
if (hasIngestPipelineChanges || hasIndicesChanges) {
256-
boolean atLeastOneGeoipProcessor = atLeastOneGeoipProcessorByProject.computeIfAbsent(projectId, k -> false);
256+
boolean atLeastOneGeoipProcessor = atLeastOneGeoipProcessorByProject.getOrDefault(projectId, false);
257257
boolean newAtLeastOneGeoipProcessor = hasAtLeastOneGeoipProcessor(projectMetadata);
258258
// update if necessary
259259
if (newAtLeastOneGeoipProcessor != atLeastOneGeoipProcessor) {

0 commit comments

Comments
 (0)