mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-17 09:40:58 +00:00
[chore] delete the redundant else (#2881)
Co-authored-by: Ayu <14359932+lin-Ayu0v0@user.noreply.gitee.com>
This commit is contained in:
@@ -183,9 +183,8 @@ public class Job {
|
||||
Optional<Metrics> metric = e.stream().findAny();
|
||||
if (metric.isPresent()) {
|
||||
return metric.get().getPriority();
|
||||
} else {
|
||||
return Byte.MAX_VALUE;
|
||||
}
|
||||
return Byte.MAX_VALUE;
|
||||
}));
|
||||
envConfigmaps = new HashMap<>(8);
|
||||
}
|
||||
@@ -229,9 +228,8 @@ public class Job {
|
||||
}
|
||||
Set<Metrics> source = priorMetrics.peek();
|
||||
return new HashSet<>(source);
|
||||
} else {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
public void addCollectMetricsData(CollectRep.MetricsData metricsData) {
|
||||
|
||||
Reference in New Issue
Block a user