Skip to content

Commit 7d03fc6

Browse files
authored
Merge pull request #3414 from estesp/refactor-forloop
Small refactor due to CI linter changes
2 parents f3e148b + 82826df commit 7d03fc6

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)