Skip to content

Commit

Permalink
Reorder checks
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Mar 2, 2024
1 parent f335bb8 commit 898657d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/assert_package.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ assert_package <- function(name, url) {
if (identical(owner, "cran")) {
return(paste("URL", shQuote(url), "appears to use a CRAN mirror."))
}
assert_cran_url(name = name, url = url)
status <- nanonext::ncurl(url)[["status"]]
if (status != 200L) {
return(
Expand All @@ -59,6 +58,7 @@ assert_package <- function(name, url) {
)
)
}
assert_cran_url(name = name, url = url)
}

assert_package_lite <- function(name, url) {
Expand Down

0 comments on commit 898657d

Please sign in to comment.