From 5805ef59654bc06567d44fd30001dbcd2651e925 Mon Sep 17 00:00:00 2001 From: Aurelien FOUCRET Date: Mon, 11 Mar 2024 12:24:49 +0100 Subject: [PATCH] Remove useless else --- .../xpack/ml/inference/loadingservice/ModelLoadingService.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/loadingservice/ModelLoadingService.java b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/loadingservice/ModelLoadingService.java index 0268140714a7c..5869f353c80c9 100644 --- a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/loadingservice/ModelLoadingService.java +++ b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/inference/loadingservice/ModelLoadingService.java @@ -821,8 +821,6 @@ public void clusterChanged(ClusterChangedEvent event) { // Either way, we know we won't put it back in cache as we are synchronized on `loadingListeners` if (modelAndConsumer == null) { ML_MODEL_INFERENCE_FEATURE.stopTracking(licenseState, modelId); - } else { - } } }