Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iliax committed Aug 20, 2023
1 parent 9dcb4da commit 0730bab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private ReactiveFailover<PrometheusClientApi> prometheusStorageClient(ClustersPr
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);
}
Expand Down

0 comments on commit 0730bab

Please sign in to comment.