From bc8d1f806f16b6e679bf0d8e3a8600465c8b35cd Mon Sep 17 00:00:00 2001 From: Ambarish Singh Date: Fri, 29 Sep 2023 17:30:52 +0530 Subject: [PATCH] gofmt format changes --- pumps/prometheus.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pumps/prometheus.go b/pumps/prometheus.go index 7f1dff6be..2f3cb209d 100644 --- a/pumps/prometheus.go +++ b/pumps/prometheus.go @@ -393,12 +393,12 @@ func (pm *PrometheusMetric) GetLabelsValues(decoded analytics.AnalyticsRecord) [ for _, label := range pm.Labels { if val, ok := mapping[label]; ok { values = append(values, fmt.Sprint(val)) - }else{ + } else { // log.Info(label) val = "UNKNOWN" - for _, tag := range decoded.Tags{ + for _, tag := range decoded.Tags { prefixString := label + "-" - if strings.HasPrefix(tag,prefixString){ + if strings.HasPrefix(tag, prefixString) { val = tag[len(prefixString):] break }