Skip to content

Commit f159188

Browse files
Simplify boolean expression
Co-authored-by: Jonas Kunz <[email protected]>
1 parent 6842cd4 commit f159188

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugin/otel-data/src/main/java/org/elasticsearch/xpack/oteldata/otlp/datapoint

1 file changed

+1
-1
lines changed

x-pack/plugin/otel-data/src/main/java/org/elasticsearch/xpack/oteldata/otlp/datapoint/DataPoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public String getDynamicTemplate() {
256256

257257
@Override
258258
public boolean isValid(Set<String> errors) {
259-
if (metric.getHistogram().getAggregationTemporality() == AggregationTemporality.AGGREGATION_TEMPORALITY_DELTA == false) {
259+
if (metric.getHistogram().getAggregationTemporality() != AggregationTemporality.AGGREGATION_TEMPORALITY_DELTA) {
260260
errors.add("cumulative histogram metrics are not supported, ignoring " + metric.getName());
261261
return false;
262262
}

0 commit comments

Comments
 (0)