aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-monitoring
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2023-01-11 11:41:25 +0100
committersonartech <sonartech@sonarsource.com>2023-01-12 20:02:51 +0000
commit44c39cc1617233606191e312682a26bd2dd01b46 (patch)
tree58ed241a92782ef7d94c6ee8674f8d9a7a4949cb /server/sonar-webserver-monitoring
parent1d191848d5d16e2615e84deb68552a6dec039e37 (diff)
downloadsonarqube-44c39cc1617233606191e312682a26bd2dd01b46.tar.gz
sonarqube-44c39cc1617233606191e312682a26bd2dd01b46.zip
[NO-JIRA] Remove reported code smells about switch labels
Diffstat (limited to 'server/sonar-webserver-monitoring')
-rw-r--r--server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ElasticSearchMetricTask.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ElasticSearchMetricTask.java b/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ElasticSearchMetricTask.java
index ec3f0e79135..dedea9150c8 100644
--- a/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ElasticSearchMetricTask.java
+++ b/server/sonar-webserver-monitoring/src/main/java/org/sonar/server/monitoring/ElasticSearchMetricTask.java
@@ -58,8 +58,7 @@ public class ElasticSearchMetricTask implements MonitoringTask {
serverMonitoringMetrics.setElasticSearchStatusToRed();
} else {
switch (esStatus) {
- case GREEN:
- case YELLOW:
+ case GREEN, YELLOW:
serverMonitoringMetrics.setElasticSearchStatusToGreen();
break;
case RED: