Skip to content

Commit e42b3dd

Browse files
committed
Fix for empty input
1 parent 72e58fa commit e42b3dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/api.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ api_parse <- function(api, ...) {
136136

137137
dots_to_plumber_files <- function(..., prefer_yml = TRUE, call = caller_env()) {
138138
locations <- unlist(lapply(list2(...), function(loc) {
139+
if (length(loc) == 0) return(NULL)
139140
if (fs::is_dir(loc)) {
140141
loc <- fs::dir_ls(loc, all = TRUE, recurse = TRUE)
141142
server_yml <- is_plumber2_server_yml(loc)

0 commit comments

Comments
 (0)