[chore] delete the redundant else (#2881)

Co-authored-by: Ayu <14359932+lin-Ayu0v0@user.noreply.gitee.com>
This commit is contained in:
Ayu
2024-12-19 16:07:57 +08:00
committed by GitHub
co-authored by Ayu
parent d4f6fc1ae8
commit ceda4a65f9
@@ -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) {