Merge pull request #124822 from sanposhiho/fleanup-unnecessar
cleanup: eliminate unncessary NodeToStatusMap creation
This commit is contained in:
		@@ -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{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user