Skip to content

Commit

Permalink
remove redundant token check
Browse files Browse the repository at this point in the history
  • Loading branch information
kbvernon committed Jan 22, 2024
1 parent 74bbd42 commit 84a5dd2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions R/get-estimates.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,6 @@ get_layer_estimates <- function(x, token = arc_token()) {
"getEstimates"
)

# token bug :[
if (token != "") {
req <-
httr2::req_auth_bearer_token(
httr2::req_url_query(est_req, f = "json"),
token
)
resp <- httr2::req_perform(req)
} else {
resp <-
httr2::req_perform(
httr2::req_url_query(est_req, f = "json")
)
}

# process json string
res_raw <- RcppSimdJson::fparse(httr2::resp_body_string(resp))

Expand Down

0 comments on commit 84a5dd2

Please sign in to comment.