Skip to content

Commit cb33e89

Browse files
Merge pull request #1166 from r-lib/fix-return-lints
Fix new lints about implicit return
2 parents b70d75c + ee2b7c8 commit cb33e89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/detect-alignment-utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ alignment_serialize_line <- function(relevant_pd_by_line, column) {
153153
alignment_serialize <- function(pd_sub) {
154154
out <- Map(function(terminal, text, child, spaces, newlines) {
155155
if (terminal) {
156-
return(paste0(text, rep_char(" ", spaces)))
156+
paste0(text, rep_char(" ", spaces))
157157
} else {
158-
return(paste0(alignment_serialize(child), rep_char(" ", spaces)))
158+
paste0(alignment_serialize(child), rep_char(" ", spaces))
159159
}
160160
}, pd_sub$terminal, pd_sub$text, pd_sub$child, pd_sub$spaces, pd_sub$newlines)
161161
if (anyNA(out)) {

0 commit comments

Comments
 (0)