Limit bugfix.

This commit is contained in:
Alexey Skobkin 2016-03-28 02:52:29 +03:00
parent df54db176d
commit 9efce351d8

View file

@ -90,7 +90,7 @@ func main() {
for page.HasNext { for page.HasNext {
pageNumber++ pageNumber++
if pageNumber > limit { if limit > 0 && pageNumber > limit {
fmt.Println("Limit reached") fmt.Println("Limit reached")
break break
} }