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 2019-07-15 11:17:02 -04:00 committed by Derek McGowan
parent f3e148b1cc
commit 82826df9bd
No known key found for this signature in database
GPG Key ID: F58C5D0A4405ACDB

View File

@ -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
},
}