Skip to content

Commit 607626a

Browse files
MadhavJivrajanik8s-publishing-bot
authored andcommitted
*: Fix linter warnings
Adapt to newly improved linters in golangci-lint v1.51.1 Signed-off-by: Madhav Jivrajani <[email protected]> Kubernetes-commit: e1d69200e554debbf0df381e5104227980142a3b
1 parent de5bbf2 commit 607626a

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

metrics/metric.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ var noopCounterVec = &prometheus.CounterVec{}
207207
var noopHistogramVec = &prometheus.HistogramVec{}
208208
var noopTimingHistogramVec = &promext.TimingHistogramVec{}
209209
var noopGaugeVec = &prometheus.GaugeVec{}
210-
var noopObserverVec = &noopObserverVector{}
211210

212211
// just use a convenience struct for all the no-ops
213212
var noop = &noopMetric{}
@@ -226,22 +225,3 @@ func (noopMetric) Desc() *prometheus.Desc { return nil }
226225
func (noopMetric) Write(*dto.Metric) error { return nil }
227226
func (noopMetric) Describe(chan<- *prometheus.Desc) {}
228227
func (noopMetric) Collect(chan<- prometheus.Metric) {}
229-
230-
type noopObserverVector struct{}
231-
232-
func (noopObserverVector) GetMetricWith(prometheus.Labels) (prometheus.Observer, error) {
233-
return noop, nil
234-
}
235-
func (noopObserverVector) GetMetricWithLabelValues(...string) (prometheus.Observer, error) {
236-
return noop, nil
237-
}
238-
func (noopObserverVector) With(prometheus.Labels) prometheus.Observer { return noop }
239-
func (noopObserverVector) WithLabelValues(...string) prometheus.Observer { return noop }
240-
func (noopObserverVector) CurryWith(prometheus.Labels) (prometheus.ObserverVec, error) {
241-
return noopObserverVec, nil
242-
}
243-
func (noopObserverVector) MustCurryWith(prometheus.Labels) prometheus.ObserverVec {
244-
return noopObserverVec
245-
}
246-
func (noopObserverVector) Describe(chan<- *prometheus.Desc) {}
247-
func (noopObserverVector) Collect(chan<- prometheus.Metric) {}

0 commit comments

Comments
 (0)