Small refactor due to CI linter changes
Without the open variable in use, no reason to define it or use it as the for loop control. Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
This commit is contained in:
		 Phil Estes
					Phil Estes
				
			
				
					committed by
					
						 Derek McGowan
						Derek McGowan
					
				
			
			
				
	
			
			
			 Derek McGowan
						Derek McGowan
					
				
			
						parent
						
							f3e148b1cc
						
					
				
				
					commit
					82826df9bd
				
			| @@ -42,8 +42,7 @@ var Command = cli.Command{ | ||||
| 		defer cancel() | ||||
| 		eventsClient := client.EventService() | ||||
| 		eventsCh, errCh := eventsClient.Subscribe(ctx, context.Args()...) | ||||
| 		open := true | ||||
| 		for open { | ||||
| 		for { | ||||
| 			var e *events.Envelope | ||||
| 			select { | ||||
| 			case e = <-eventsCh: | ||||
| @@ -72,6 +71,5 @@ var Command = cli.Command{ | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		return nil | ||||
| 	}, | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user