From c470433da6d390319d87c816ffcf40513949f2f6 Mon Sep 17 00:00:00 2001 From: Maciej Banas Date: Mon, 14 Oct 2024 14:17:15 +0000 Subject: [PATCH] Lint. --- R/GitHost.R | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/R/GitHost.R b/R/GitHost.R index 09725a90..2975c1a2 100644 --- a/R/GitHost.R +++ b/R/GitHost.R @@ -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 {