Skip to content

Commit f71033e

Browse files
committed
Fix issue with Histogram & Summary
1 parent 1a821d8 commit f71033e

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Sources/Prometheus/MetricTypes/Histogram.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public class Histogram<NumType: DoubleRepresentable, Labels: HistogramLabels>: M
9191
if let labels = labels, type(of: labels) != type(of: EmptySummaryCodable()) {
9292
let his = prometheus.getOrCreateHistogram(with: labels, for: self)
9393
his.observe(value)
94-
return
9594
}
9695
self.total.inc(value)
9796

Sources/Prometheus/MetricTypes/Summary.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public class Summary<NumType: DoubleRepresentable, Labels: SummaryLabels>: Metri
8585
if let labels = labels, type(of: labels) != type(of: EmptySummaryCodable()) {
8686
let sum = self.prometheus.getOrCreateSummary(withLabels: labels, forSummary: self)
8787
sum.observe(value)
88-
return
8988
}
9089
self.count.inc(1)
9190
self.sum.inc(value)

0 commit comments

Comments
 (0)