Skip to content

Commit

Permalink
Merge pull request #182 from mfridman/master
Browse files Browse the repository at this point in the history
Check for parsing errors
  • Loading branch information
thrawn01 authored Apr 19, 2019
2 parents bc20c00 + 9bd0e7d commit 33eaa4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions events.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ func (ei *EventIterator) Next(ctx context.Context, events *[]Event) bool {
return false
}
*events, ei.err = ParseEvents(ei.Items)
if ei.err != nil {
return false
}
if len(ei.Items) == 0 {
return false
}
Expand Down

0 comments on commit 33eaa4c

Please sign in to comment.