Skip to content

Commit 6b53a9d

Browse files
MrLotUYasumoto
andauthored
Update Sources/Prometheus/MetricTypes/Summary.swift
No need to name closure arguments Co-Authored-By: Yasumoto <[email protected]>
1 parent 953d14f commit 6b53a9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Prometheus/MetricTypes/Summary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public class Summary<NumType: DoubleRepresentable, Labels: SummaryLabels>: Metri
125125
/// - labels: Labels to attach to the observed value
126126
/// - done: Completion handler
127127
/// - observedValue: Value written to the summary
128-
public func observe(_ value: NumType, _ labels: Labels? = nil, _ done: @escaping (_ observedValue: NumType) -> Void = { _ in }) {
128+
public func observe(_ value: NumType, _ labels: Labels? = nil, _ done: @escaping () -> Void = { }) {
129129
prometheusQueue.async(flags: .barrier) {
130130
if let labels = labels, type(of: labels) != type(of: EmptySummaryLabels()) {
131131
let sum = self.prometheus.getOrCreateSummary(withLabels: labels, forSummary: self)

0 commit comments

Comments
 (0)