Skip to content

Commit

Permalink
Order of case statements in switch loop (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
aidansteele committed May 29, 2019
1 parent b51e07c commit 7466e60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ func printUntilDone(ctx context.Context, events <-chan stackit.TailStackEvent, w

for {
select {
case <-ctx.Done():
return
case tailEvent := <-events:
printer.PrintTailEvent(tailEvent)
case <-ctx.Done():
return
}
}
}
Expand Down

0 comments on commit 7466e60

Please sign in to comment.