From ee2b7c8def88c7edbefd1bc6f4c64282c9463a18 Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Mon, 4 Dec 2023 09:22:54 +0100 Subject: [PATCH] Fix new lints about implicit return --- R/detect-alignment-utils.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/detect-alignment-utils.R b/R/detect-alignment-utils.R index 50e1b07f7..caed586d7 100644 --- a/R/detect-alignment-utils.R +++ b/R/detect-alignment-utils.R @@ -153,9 +153,9 @@ alignment_serialize_line <- function(relevant_pd_by_line, column) { alignment_serialize <- function(pd_sub) { out <- Map(function(terminal, text, child, spaces, newlines) { if (terminal) { - return(paste0(text, rep_char(" ", spaces))) + paste0(text, rep_char(" ", spaces)) } else { - return(paste0(alignment_serialize(child), rep_char(" ", spaces))) + paste0(alignment_serialize(child), rep_char(" ", spaces)) } }, pd_sub$terminal, pd_sub$text, pd_sub$child, pd_sub$spaces, pd_sub$newlines) if (anyNA(out)) {