Skip to content

Commit

Permalink
try simplify vectorized stop_mirai()
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Gao <[email protected]>
  • Loading branch information
shikokuchuo authored Dec 12, 2024
1 parent 12ce2e5 commit dfd0e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/mirai.R
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ collect_mirai <- collect_aio
#' @export
#'
stop_mirai <- function(x) {
is.list(x) && return(rev(as.logical(lapply(rev(unclass(x)), stop_mirai))))
is.list(x) && return(as.logical(lapply(x, stop_mirai)))
.compute <- attr(x, "profile")
envir <- if (is.character(.compute)) ..[[.compute]]
stop_aio(x)
Expand Down

0 comments on commit dfd0e6f

Please sign in to comment.