From bea228a9c7bb0ca131bc7f5d07fee346af9567e7 Mon Sep 17 00:00:00 2001 From: Teun van den Brand <49372158+teunbrand@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:14:28 +0200 Subject: [PATCH] remove branch (#470) --- R/utils.R | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/R/utils.R b/R/utils.R index 57dea1ef..25cfa505 100644 --- a/R/utils.R +++ b/R/utils.R @@ -73,11 +73,7 @@ recycle_common <- function(..., size = NULL, call = caller_env()) { n <- setdiff(n, 1L) ns <- length(n) - if (ns == 0) { # All have length 1 - if (is.null(size)) { - return(xs) - } - } else if (ns == 1) { + if (ns == 1) { if (is.null(size)) { size <- n } else if (n != size) {