Merge pull request #124822 from sanposhiho/fleanup-unnecessar

cleanup: eliminate unncessary NodeToStatusMap creation
This commit is contained in:
Kubernetes Prow Robot 2024-05-11 07:36:19 -07:00 committed by GitHub
commit fcda8cc269
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -444,9 +444,7 @@ func (sched *Scheduler) findNodesThatFitPod(ctx context.Context, fwk framework.F
allNodes, err := sched.nodeInfoSnapshot.NodeInfos().List()
if err != nil {
return nil, framework.Diagnosis{
NodeToStatusMap: make(framework.NodeToStatusMap),
}, err
return nil, framework.Diagnosis{}, err
}
diagnosis := framework.Diagnosis{