Skip to content

Commit

Permalink
Reduce complexity of get_extra pages
Browse files Browse the repository at this point in the history
  • Loading branch information
wkmor1 committed Nov 29, 2023
1 parent c877de4 commit 4b7c258
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/finbif_records.R
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,9 @@ get_extra_pages <- function(fb_records_list) {

quiet <- attr(fb_records_list, "quiet", TRUE)

if (multipage && !quiet) {
use_progress <- multipage && !quiet

if (use_progress) {

pb_head("Fetching data")

Expand Down Expand Up @@ -895,7 +897,9 @@ get_extra_pages <- function(fb_records_list) {

}

if (page == n_pages + 2 || current_page_size == 0) {
end <- page == n_pages + 2 || current_page_size == 0

if (end) {

break

Expand Down

0 comments on commit 4b7c258

Please sign in to comment.