mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 02:09:56 +00:00
Merge pull request #122041 from uniemimu/cleanup
remove unnecessary fmt.Sprintf call
This commit is contained in:
commit
b155d51f97
@ -177,8 +177,7 @@ func (pl *DefaultPreemption) SelectVictimsOnNode(
|
||||
|
||||
// No potential victims are found, and so we don't need to evaluate the node again since its state didn't change.
|
||||
if len(potentialVictims) == 0 {
|
||||
message := fmt.Sprintf("No preemption victims found for incoming pod")
|
||||
return nil, 0, framework.NewStatus(framework.UnschedulableAndUnresolvable, message)
|
||||
return nil, 0, framework.NewStatus(framework.UnschedulableAndUnresolvable, "No preemption victims found for incoming pod")
|
||||
}
|
||||
|
||||
// If the new pod does not fit after removing all the lower priority pods,
|
||||
|
Loading…
Reference in New Issue
Block a user