Skip to content

Commit

Permalink
Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekbanas committed Oct 14, 2024
1 parent 83ae94f commit c470433
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions R/GitHost.R
Original file line number Diff line number Diff line change
Expand Up @@ -544,14 +544,14 @@ GitHost <- R6::R6Class(
httr2::request(test_endpoint) |>
httr2::req_headers("Authorization" = paste0("Bearer ", token)) |>
httr2::req_perform()
},
error = function(e) {
if (!is.null(e$parent) && grepl("Could not resolve host", e$parent$message)) {
cli::cli_abort(e$parent$message, call = NULL)
} else {
NULL
}
})
},
error = function(e) {
if (!is.null(e$parent) && grepl("Could not resolve host", e$parent$message)) {
cli::cli_abort(e$parent$message, call = NULL)
} else {
NULL
}
})
if (!is.null(response)) {
check <- private$check_token_scopes(response, token)
} else {
Expand Down

0 comments on commit c470433

Please sign in to comment.