Skip to content

Commit

Permalink
style: rm trailing newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
salim-b committed Feb 26, 2025
1 parent d195a3c commit 2009db6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/repo.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ package_repo <- function(pkg) {
# Use metadata if available
repo <- config_pluck_list(pkg, "repo")
url <- config_pluck_list(pkg, "repo.url")


if (!is.null(url)) {
return(repo)
Expand Down Expand Up @@ -117,13 +117,13 @@ gha_current_branch <- function() {
if (ref != "") {
return(ref)
}

# Set everywhere but might not be a branch
ref <- Sys.getenv("GITHUB_REF_NAME")
if (ref != "") {
return(ref)
}

"HEAD"
}

Expand Down

0 comments on commit 2009db6

Please sign in to comment.