Limit bugfix.

This commit is contained in:
Alexey Skobkin 2016-03-28 02:52:29 +03:00
parent df54db176d
commit 9efce351d8
1 changed files with 1 additions and 1 deletions

View File

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