From de867eae78b934cec56f0c430422d64158f0f18e Mon Sep 17 00:00:00 2001 From: George Robinson Date: Thu, 4 Jan 2024 11:47:15 +0000 Subject: [PATCH] Fix lint Signed-off-by: George Robinson --- matchers/compat/metrics.go | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/matchers/compat/metrics.go b/matchers/compat/metrics.go index 7551fc3516..5b6a559a14 100644 --- a/matchers/compat/metrics.go +++ b/matchers/compat/metrics.go @@ -18,21 +18,17 @@ import ( "github.com/prometheus/client_golang/prometheus/promauto" ) -var ( - RegisteredMetrics = NewMetrics(prometheus.DefaultRegisterer) -) - const ( OriginAPI = "api" OriginConfig = "config" ) -var ( - DefaultOrigins = []string{ - OriginAPI, - OriginConfig, - } -) +var DefaultOrigins = []string{ + OriginAPI, + OriginConfig, +} + +var RegisteredMetrics = NewMetrics(prometheus.DefaultRegisterer) type Metrics struct { Total *prometheus.GaugeVec