Skip to content

Commit

Permalink
Remove pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
plietar committed Sep 2, 2024
1 parent 1236620 commit 348649f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/location_packit.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ packit_authorisation <- function(base_url, token) {
login_url <- paste0(base_url, "packit/api/auth/login/api")
res <- http_client_request(
login_url,
function(r) r %>% httr2::req_body_json(list(token = scalar(token))))
function(r) httr2::req_body_json(r, list(token = scalar(token))))

cli::cli_alert_success("Logged in successfully")

Expand Down

0 comments on commit 348649f

Please sign in to comment.