Merge pull request #3414 from estesp/refactor-forloop

Small refactor due to CI linter changes
This commit is contained in:
Derek McGowan 2019-07-15 11:19:48 -07:00 committed by GitHub
commit 7d03fc63e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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