mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-28 14:41:10 +01:00
golint fix
This commit is contained in:
@@ -75,7 +75,7 @@ func validateNodeUtilizationParams(params *api.StrategyParameters) error {
|
|||||||
|
|
||||||
// validateThresholds checks if thresholds have valid resource name and resource percentage configured
|
// validateThresholds checks if thresholds have valid resource name and resource percentage configured
|
||||||
func validateThresholds(thresholds api.ResourceThresholds) error {
|
func validateThresholds(thresholds api.ResourceThresholds) error {
|
||||||
if thresholds == nil || len(thresholds) == 0 {
|
if len(thresholds) == 0 {
|
||||||
return fmt.Errorf("no resource threshold is configured")
|
return fmt.Errorf("no resource threshold is configured")
|
||||||
}
|
}
|
||||||
for name, percent := range thresholds {
|
for name, percent := range thresholds {
|
||||||
|
|||||||
Reference in New Issue
Block a user