From 05a444af7eb8efbd1511326d57189237c590e67a Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Mon, 13 May 2024 15:46:14 +0800 Subject: [PATCH] Resolve unused variable This resolves the compilation warning: src/otel_aggregation_sum.erl:119:9: Warning: variable 'N' is unused --- apps/opentelemetry_experimental/src/otel_aggregation_sum.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opentelemetry_experimental/src/otel_aggregation_sum.erl b/apps/opentelemetry_experimental/src/otel_aggregation_sum.erl index fd70220f..f2b13264 100644 --- a/apps/opentelemetry_experimental/src/otel_aggregation_sum.erl +++ b/apps/opentelemetry_experimental/src/otel_aggregation_sum.erl @@ -116,7 +116,7 @@ aggregate(Ctx, Tab, ExemplarsTab, #stream{name=Name, 1 -> otel_metric_exemplar_reservoir:offer(Ctx, ExemplarReservoir, ExemplarsTab, Key, Value, DroppedAttributes), true; - N -> + _N -> false end.