Skip to content

Commit

Permalink
fix golanglint
Browse files Browse the repository at this point in the history
  • Loading branch information
Disper committed Mar 5, 2024
1 parent 7d902ad commit f519fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -51,7 +52,6 @@ func (m Metrics) UnSetGardenerClusterStates(runtimeId string) {
}

func (m Metrics) cleanUpGardenerClusterGauge(runtimeId string) {

Check warning on line 54 in internal/controller/metrics/metrics.go

View workflow job for this annotation

GitHub Actions / golangci-lint

var-naming: method parameter runtimeId should be runtimeID (revive)

var readyMetric, _ = m.gardenerClustersStateGaugeVec.GetMetricWithLabelValues(runtimeId, "Ready")
if readyMetric != nil {
readyMetric.Set(0)
Expand Down

0 comments on commit f519fa2

Please sign in to comment.