diff --git a/coderd/prometheusmetrics/collector.go b/coderd/prometheusmetrics/collector.go index 8839553a1f..45eb479640 100644 --- a/coderd/prometheusmetrics/collector.go +++ b/coderd/prometheusmetrics/collector.go @@ -57,8 +57,7 @@ func (v *CachedGaugeVec) Collect(ch chan<- prometheus.Metric) { func (v *CachedGaugeVec) WithLabelValues(operation VectorOperation, value float64, labelValues ...string) { switch operation { - case VectorOperationAdd: - case VectorOperationSet: + case VectorOperationAdd, VectorOperationSet: default: panic("unsupported vector operation") }