Merge pull request #122041 from uniemimu/cleanup

remove unnecessary fmt.Sprintf call
This commit is contained in:
Kubernetes Prow Robot 2023-12-14 05:10:11 +01:00 committed by GitHub
commit b155d51f97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,