Skip to content

Commit

Permalink
Merge pull request #13 from arvitolvanen/master
Browse files Browse the repository at this point in the history
Fix class check
  • Loading branch information
pitkant committed May 8, 2024
2 parents c4413c0 + 5372547 commit 8d5e83d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/http_funs.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ test_connection <- function(url = NULL, timeout = 10) {
}

resp <- try_GET(url, timeout)
if (class(resp) != "response") {
if (!inherits(resp,"response")) {
message(resp)
return(invisible(NULL))
}
Expand Down

0 comments on commit 8d5e83d

Please sign in to comment.