From c5621f1648069c115c894a3237edab9f720a7900 Mon Sep 17 00:00:00 2001 From: Swetha Guptha Date: Fri, 18 Oct 2024 17:45:53 +0530 Subject: [PATCH] Build fix. Signed-off-by: Swetha Guptha --- .../action/admin/cluster/stats/ClusterStatsNodes.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/opensearch/action/admin/cluster/stats/ClusterStatsNodes.java b/server/src/main/java/org/opensearch/action/admin/cluster/stats/ClusterStatsNodes.java index 4c76a29a0fd8b..bf8218a66fc17 100644 --- a/server/src/main/java/org/opensearch/action/admin/cluster/stats/ClusterStatsNodes.java +++ b/server/src/main/java/org/opensearch/action/admin/cluster/stats/ClusterStatsNodes.java @@ -131,7 +131,7 @@ public class ClusterStatsNodes implements ToXContentFragment { if (!seenAddresses.add(inetAddress)) { continue; } - if (requestedMetrics.contains(ClusterStatsRequest.Metric.FS) != null && nodeResponse.nodeStats().getFs() != null) { + if (requestedMetrics.contains(ClusterStatsRequest.Metric.FS) && nodeResponse.nodeStats().getFs() != null) { this.fs.add(nodeResponse.nodeStats().getFs().getTotal()); } }