Skip to content

Commit ad2353c

Browse files
authored
chore: improve syntax in metrics collector (#7085)
1 parent 63af4c6 commit ad2353c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

coderd/prometheusmetrics/collector.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ func (v *CachedGaugeVec) Collect(ch chan<- prometheus.Metric) {
5757

5858
func (v *CachedGaugeVec) WithLabelValues(operation VectorOperation, value float64, labelValues ...string) {
5959
switch operation {
60-
case VectorOperationAdd:
61-
case VectorOperationSet:
60+
case VectorOperationAdd, VectorOperationSet:
6261
default:
6362
panic("unsupported vector operation")
6463
}

0 commit comments

Comments
 (0)