From b3caafa55aff6b8b257833b57fd6c23547cd7b8b Mon Sep 17 00:00:00 2001 From: Hanshuo Tan <tanhanshuo@gmail.com> Date: Mon, 14 Dec 2020 13:58:15 +1100 Subject: [PATCH] clean up --- sdk/metric/sdk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/metric/sdk.go b/sdk/metric/sdk.go index 7a7b0dcc587..1d4466afccc 100644 --- a/sdk/metric/sdk.go +++ b/sdk/metric/sdk.go @@ -299,7 +299,7 @@ func (s *syncInstrument) Bind(kvs []label.KeyValue) metric.BoundSyncImpl { func (s *syncInstrument) RecordOne(ctx context.Context, num number.Number, kvs []label.KeyValue) { - if s.meter.metricsLabelsEnricher != nil { + if s.meter.metricsLabelsEnricher != nil { var err error kvs, err = s.meter.metricsLabelsEnricher(ctx, kvs) if err != nil {