Skip to content
Snippets Groups Projects
Commit 5dbc6f7e authored by Michael Cook's avatar Michael Cook
Browse files

handle paginated results that are only one page

parent 52d66482
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ func pagination() {
}
// Exit the loop when we've seen all pages.
if opt.Page >= resp.TotalPages {
if resp.CurrentPage >= resp.TotalPages {
break
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment