minor fix

This commit is contained in:
iliax 2023-08-20 23:43:07 +04:00
parent 9dcb4daf1a
commit 0730bab773

View file

@ -194,7 +194,7 @@ public class KafkaClusterFactory {
private boolean prometheusStorageConfigured(ClustersProperties.Cluster cluster) {
return Optional.ofNullable(cluster.getMetrics())
.flatMap(m -> Optional.ofNullable(m.getStore()))
.flatMap(s -> Optional.of(s.getPrometheus()))
.flatMap(s -> Optional.ofNullable(s.getPrometheus()))
.map(p -> StringUtils.hasText(p.getUrl()))
.orElse(false);
}