Skip to content

Commit

Permalink
[ML] Remove {}
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Dec 17, 2020
1 parent b3119f9 commit 881b638
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 881b638

Please sign in to comment.