Fix static checks for pkg/controller/podautoscaler

This commit is contained in:
Ben Hu
2020-10-08 03:01:44 +00:00
parent 77b725784c
commit 4e62298c1b
5 changed files with 3 additions and 307 deletions

View File

@@ -459,7 +459,6 @@ func (a *HorizontalController) computeStatusForResourceMetricGeneric(currentRepl
if target.AverageUtilization == nil {
errMsg := "invalid resource metric source: neither a utilization target nor a value target was set"
err = fmt.Errorf(errMsg)
return 0, nil, time.Time{}, "", condition, fmt.Errorf(errMsg)
}