From ecf9bec2f7ec707ae432270cf1c1b6bdc7df828d Mon Sep 17 00:00:00 2001 From: Mohamed Yusuf Date: Tue, 30 Apr 2024 17:31:11 +0200 Subject: [PATCH] Refactor code --- R/get_ona.R | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/R/get_ona.R b/R/get_ona.R index 8374da2..cb823c9 100644 --- a/R/get_ona.R +++ b/R/get_ona.R @@ -382,7 +382,7 @@ generate_urls <- function(full_data, file_path, } }) - return(urls) + urls } #' Call multiple URLs @@ -434,7 +434,8 @@ call_urls <- function(urls, api_token) { # Combine all the results into one tibble combined_data <- dplyr::bind_rows(results) gc() # Clean up memory - return(combined_data) + + combined_data } #' Update ONA Data