Skip to content

Commit 82826df

Browse files
estespdmcgowan
authored andcommitted
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 <[email protected]>
1 parent f3e148b commit 82826df

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

cmd/ctr/commands/events/events.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ var Command = cli.Command{
4242
defer cancel()
4343
eventsClient := client.EventService()
4444
eventsCh, errCh := eventsClient.Subscribe(ctx, context.Args()...)
45-
open := true
46-
for open {
45+
for {
4746
var e *events.Envelope
4847
select {
4948
case e = <-eventsCh:
@@ -72,6 +71,5 @@ var Command = cli.Command{
7271
}
7372
}
7473
}
75-
return nil
7674
},
7775
}

0 commit comments

Comments
 (0)