mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Restrict cz variable scope within else clause
This commit is contained in:
		@@ -171,8 +171,9 @@ func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched *
 | 
			
		||||
	// Configz registration.
 | 
			
		||||
	if cz, err := configz.New("componentconfig"); err != nil {
 | 
			
		||||
		return fmt.Errorf("unable to register configz: %s", err)
 | 
			
		||||
	}
 | 
			
		||||
	} else {
 | 
			
		||||
		cz.Set(cc.ComponentConfig)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Start events processing pipeline.
 | 
			
		||||
	cc.EventBroadcaster.StartRecordingToSink(ctx.Done())
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user