Skip to content

Commit 31ecfc1

Browse files
authored
Allow quarto_path() to return NULL
1 parent 0fcb998 commit 31ecfc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/quarto.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ quarto_path <- function() {
1010
path_env <- get_quarto_path_env()
1111
quarto_path <- if (is.na(path_env)) {
1212
path <- unname(Sys.which("quarto"))
13-
if (nzchar(path)) path else NULL
13+
if (nzchar(path)) path else return(NULL)
1414
} else {
1515
path_env
1616
}

0 commit comments

Comments
 (0)