diff --git a/R/gen_api.R b/R/gen_api.R index e79791b..9bbfb42 100644 --- a/R/gen_api.R +++ b/R/gen_api.R @@ -20,9 +20,7 @@ gen_genesis_api <- function(endpoint, overwrite_url, ...) { - url <- ifelse(is.null(overwrite_url), - "https://www-genesis.destatis.de/genesisWS/rest/2020", - overwrite_url) + url <- "https://www-genesis.destatis.de/genesisWS/rest/2020" user_agent <- "https://github.com/CorrelAid/restatis" @@ -75,9 +73,7 @@ gen_regio_api <- function(endpoint, overwrite_url, ...) { - url <- ifelse(is.null(overwrite), - "https://www.regionalstatistik.de/genesisws/rest/2020/", - overwrite_url) + url <- "https://www.regionalstatistik.de/genesisws/rest/2020/" httr2::request(url) %>% httr2::req_user_agent("https://github.com/CorrelAid/restatis") %>% @@ -112,9 +108,7 @@ gen_zensus_api <- function(endpoint, overwrite_url, ...) { - url <- ifelse(is.null(overwrite_url), - "https://ergebnisse.zensus2022.de/api/rest/2020", - overwrite_url) + url <- "https://ergebnisse.zensus2022.de/api/rest/2020" user_agent <- "https://github.com/CorrelAid/restatis"