Skip to content

Commit

Permalink
add nil
Browse files Browse the repository at this point in the history
  • Loading branch information
rschalo committed Oct 21, 2024
1 parent b41adb1 commit 653d7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/disruption/multinodeconsolidation.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func filterOutSameType(newNodeClaim *scheduling.NodeClaim, consolidate []*Candid
// swallow the error since we don't allow min values to impact reschedulability in multi node claim
newNodeClaim, err := newNodeClaim.RemoveInstanceTypeOptionsByPriceAndMinValues(newNodeClaim.Requirements, maxPrice)
if err != nil {
return []*cloudprovider.InstanceType{}, err
return nil, err
}
return newNodeClaim.InstanceTypeOptions, nil
}
Expand Down

0 comments on commit 653d7f9

Please sign in to comment.