Skip to content

Commit

Permalink
Merge pull request #1166 from r-lib/fix-return-lints
Browse files Browse the repository at this point in the history
Fix new lints about implicit return
  • Loading branch information
lorenzwalthert authored Dec 5, 2023
2 parents b70d75c + ee2b7c8 commit cb33e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/detect-alignment-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit cb33e89

Please # to comment.