Skip to content

Commit

Permalink
check for pkg null (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbarbone committed Dec 22, 2024
1 parent 352f733 commit ccbbc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/condition.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ new_condition <- function(
class <- gsub("_([a-z])", "\\U\\1", class, perl = TRUE)
}

if (!isFALSE(pkg)) {
if (!(is.null(pkg) || isFALSE(pkg))) {
if (isTRUE(pkg)) {
# may fail to get the package during development
env <- parent.frame()
Expand Down

0 comments on commit ccbbc47

Please sign in to comment.