From fb1df468ada2ab94896deeab902dd10464950ad8 Mon Sep 17 00:00:00 2001 From: Mike Dame Date: Thu, 12 May 2022 14:21:34 +0000 Subject: [PATCH] golint fix --- pkg/descheduler/strategies/nodeutilization/nodeutilization.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/descheduler/strategies/nodeutilization/nodeutilization.go b/pkg/descheduler/strategies/nodeutilization/nodeutilization.go index 87f2ac34f..9c155851d 100644 --- a/pkg/descheduler/strategies/nodeutilization/nodeutilization.go +++ b/pkg/descheduler/strategies/nodeutilization/nodeutilization.go @@ -75,7 +75,7 @@ func validateNodeUtilizationParams(params *api.StrategyParameters) error { // validateThresholds checks if thresholds have valid resource name and resource percentage configured func validateThresholds(thresholds api.ResourceThresholds) error { - if thresholds == nil || len(thresholds) == 0 { + if len(thresholds) == 0 { return fmt.Errorf("no resource threshold is configured") } for name, percent := range thresholds {