From 90e34f5b0fefe43069937ae9875d5ed88ad2e043 Mon Sep 17 00:00:00 2001 From: Yoon Park Date: Sun, 30 Jul 2023 16:21:44 +0900 Subject: [PATCH] Update comment to explain the purpose of empty return line --- pkg/prommetrics/prommetrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/prommetrics/prommetrics.go b/pkg/prommetrics/prommetrics.go index 3fa75170a8b..ee9d04f311b 100644 --- a/pkg/prommetrics/prommetrics.go +++ b/pkg/prommetrics/prommetrics.go @@ -320,7 +320,7 @@ func getLabels(namespace string, scaledResource string, scaler string, scalerInd case ScaledJobResource: return prometheus.Labels{"namespace": namespace, "scaledJob": scaledResource, "scaler": scaler, "scalerIndex": strconv.Itoa(scalerIndex), "metric": metric} } - // Only two types are currently supported. It cannot be reached here + // Only two types(ScaledObject and ScaledJob) are currently supported. It cannot be reached here return nil }