Skip to content

Commit c4bf214

Browse files
committed
chore: add extra early return statement in eval_code for empty code
1 parent 257bca2 commit c4bf214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/qenv-eval_code.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ setMethod("eval_code", signature = c(object = "qenv.error"), function(object, co
4141

4242
#' @keywords internal
4343
.eval_code <- function(object, code, ...) {
44-
if (identical(code, "")) {
44+
if (identical(trimws(code), "") || length(code) == 0) {
4545
return(object)
4646
}
4747
parsed_code <- parse(text = code, keep.source = TRUE)

0 commit comments

Comments
 (0)