Skip to content

Commit

Permalink
doctl: pagination is 1 indexed, not 0 indexed
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Hines committed May 23, 2016
1 parent 3be90e4 commit 64f8c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion do/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func PaginateResp(gen Generator) ([]interface{}, error) {
}

// start with second page
for i := 1; i < lp; i++ {
for i := 2; i <= lp; i++ {
fetchChan <- i
}
close(fetchChan)
Expand Down

0 comments on commit 64f8c16

Please sign in to comment.