Skip to content

Commit

Permalink
Update comment to explain the purpose of empty return line
Browse files Browse the repository at this point in the history
  • Loading branch information
yoongon committed Jul 30, 2023
1 parent 2179076 commit 90e34f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/prommetrics/prommetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 90e34f5

Please sign in to comment.