From 881b63890b9b861b903fe8a3990f6285ef43113f Mon Sep 17 00:00:00 2001 From: Quynh Nguyen Date: Thu, 17 Dec 2020 11:12:13 -0600 Subject: [PATCH] [ML] Remove {} --- .../timeseriesexplorer/get_function_description.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/ml/public/application/timeseriesexplorer/get_function_description.ts b/x-pack/plugins/ml/public/application/timeseriesexplorer/get_function_description.ts index 90fe1de432179..e04f1dc6da87b 100644 --- a/x-pack/plugins/ml/public/application/timeseriesexplorer/get_function_description.ts +++ b/x-pack/plugins/ml/public/application/timeseriesexplorer/get_function_description.ts @@ -60,10 +60,9 @@ export const getFunctionDescription = async ( // grabbing first record because records should have already been sorted by score desc const highestScoringAnomaly = resp.records[0]; return highestScoringAnomaly?.function_description; - } else { - // if there's no anomaly found, auto default to plotting the mean - return ES_AGGREGATION.AVG; } + // if there's no anomaly found, auto default to plotting the mean + return ES_AGGREGATION.AVG; } catch (error) { toastNotificationService.displayErrorToast( error,