From d234f90b7180dd7fe96492daf591024ca5f280f9 Mon Sep 17 00:00:00 2001 From: CI Robot Date: Thu, 12 Sep 2024 18:11:24 +0000 Subject: [PATCH] Styled package --- R/nix_hash.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/nix_hash.R b/R/nix_hash.R index 9a07b520..2a1c33d1 100644 --- a/R/nix_hash.R +++ b/R/nix_hash.R @@ -181,9 +181,9 @@ hash_git <- function(repo_url, commit) { slash <- "/" } - if(grepl("github", repo_url)){ + if (grepl("github", repo_url)) { url <- paste0(repo_url, slash, "archive/", commit, ".tar.gz") - } else if(grepl("gitlab", repo_url)){ + } else if (grepl("gitlab", repo_url)) { url <- paste0(repo_url, slash, "-/archive/", commit, ".tar.gz") }