Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Commit

Permalink
add missing conditional:
Browse files Browse the repository at this point in the history
- without this, follow returns early
  • Loading branch information
Daniel Fuentes committed Jul 31, 2017
1 parent b532c48 commit 0ead236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cwreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (c *CloudwatchLogsReader) pumpEvents(eventChan chan<- Event, follow bool) {

if o.NextToken != nil {
params.NextToken = o.NextToken
} else {
} else if !follow {
close(eventChan)
return
}
Expand Down

0 comments on commit 0ead236

Please sign in to comment.