From 82826df9bdaacf3d34fa391761d8d6bb972b51c0 Mon Sep 17 00:00:00 2001 From: Phil Estes Date: Mon, 15 Jul 2019 11:17:02 -0400 Subject: [PATCH] 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 --- cmd/ctr/commands/events/events.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/ctr/commands/events/events.go b/cmd/ctr/commands/events/events.go index 9c5934c1c..dae7a9f16 100644 --- a/cmd/ctr/commands/events/events.go +++ b/cmd/ctr/commands/events/events.go @@ -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 }, }