mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	ineffectual assignment to baseCommand, delete it
Signed-off-by: yupengzte <yu.peng36@zte.com.cn>
This commit is contained in:
		@@ -119,8 +119,7 @@ func (hk *HyperKube) Run(args []string) error {
 | 
			
		||||
	// If we are called directly, parse all flags up to the first real
 | 
			
		||||
	// argument.  That should be the server to run.
 | 
			
		||||
	command := args[0]
 | 
			
		||||
	baseCommand := path.Base(command)
 | 
			
		||||
	serverName := baseCommand
 | 
			
		||||
	serverName := path.Base(command)
 | 
			
		||||
	args = args[1:]
 | 
			
		||||
	if serverName == hk.Name {
 | 
			
		||||
 | 
			
		||||
@@ -144,7 +143,6 @@ func (hk *HyperKube) Run(args []string) error {
 | 
			
		||||
		args = baseFlags.Args()
 | 
			
		||||
		if len(args) > 0 && len(args[0]) > 0 {
 | 
			
		||||
			serverName = args[0]
 | 
			
		||||
			baseCommand = baseCommand + " " + serverName
 | 
			
		||||
			args = args[1:]
 | 
			
		||||
		} else {
 | 
			
		||||
			err = errors.New("no server specified")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user