Skip to content

Commit 9cc818a

Browse files
committed
bug: replace purrr::map with lapply
1 parent 70a9bbb commit 9cc818a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/check.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ check_epirange_param <- function(name, value, required = TRUE) {
171171
return()
172172
} else if (is_epirange_like(value)) {
173173
return()
174-
} else if (all(map(value, typeof) == "list") && length(value) > 0) {
174+
} else if (all(vapply(value, is.list, logical(1L))) && length(value) > 0) {
175175
for (i in seq_along(value)) {
176176
check_single_epirange_param(paste0(name, "[", i, "]"), value[[i]], required = TRUE)
177177
}

0 commit comments

Comments
 (0)