From f519fa29325234ecfdf7efd0b7adca21f57c444a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Drzewiecki?= Date: Tue, 5 Mar 2024 10:25:05 +0100 Subject: [PATCH] fix golanglint --- internal/controller/metrics/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/metrics/metrics.go b/internal/controller/metrics/metrics.go index 405acda6..8264eb00 100644 --- a/internal/controller/metrics/metrics.go +++ b/internal/controller/metrics/metrics.go @@ -2,6 +2,7 @@ package metrics import ( "fmt" + v1 "github.com/kyma-project/infrastructure-manager/api/v1" "github.com/prometheus/client_golang/prometheus" ctrlMetrics "sigs.k8s.io/controller-runtime/pkg/metrics" @@ -51,7 +52,6 @@ func (m Metrics) UnSetGardenerClusterStates(runtimeId string) { } func (m Metrics) cleanUpGardenerClusterGauge(runtimeId string) { - var readyMetric, _ = m.gardenerClustersStateGaugeVec.GetMetricWithLabelValues(runtimeId, "Ready") if readyMetric != nil { readyMetric.Set(0)