From e05d12fa1fbea1e49ad93bfe9a2515362322320f Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Tue, 28 Nov 2023 20:28:09 -0800 Subject: [PATCH] Remove extra if --- sdk/src/metrics/sync_instruments.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/src/metrics/sync_instruments.cc b/sdk/src/metrics/sync_instruments.cc index bdc0ac6feb..bdeff150ae 100644 --- a/sdk/src/metrics/sync_instruments.cc +++ b/sdk/src/metrics/sync_instruments.cc @@ -369,7 +369,6 @@ void DoubleHistogram::Record(double value, return; } if (!storage_) - if (value < 0 || std::isnan(value) || std::isinf(value)) { OTEL_INTERNAL_LOG_WARN( "[DoubleHistogram::Record(V,A,C)] Value not recorded - invalid storage for: "