Skip to content

Commit f2d0591

Browse files
committed
Do not set the default value
1 parent b83e05f commit f2d0591

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

pkg/cvo/metrics.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,8 @@ func (m *operatorMetrics) collectConditionalUpdateRisks(ch chan<- prometheus.Met
527527
g := m.clusterVersionRiskConditions.WithLabelValues(condition.Type, risk.Name)
528528
if condition.Status == metav1.ConditionTrue {
529529
g.Set(1)
530-
} else {
531-
g.Set(0)
532530
}
531+
// We do not need to do g.Set(0) as it is done when g is initialized
533532
ch <- g
534533
}
535534
}

0 commit comments

Comments
 (0)