Skip to content

Commit

Permalink
stack deorators messages
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Jan 22, 2025
1 parent e6b3ff2 commit 5576f60
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,12 @@ check_decorators <- function(x, names = NULL) { # nolint: object_name.
out_message <- checkmate::check_names(names(x), subset.of = c("default", names))
# see https://github.com/insightsengineering/teal.logger/issues/101
if (length(names(x)) != length(unique(names(x)))) {
out_message <- "Non-unique names in decorators."
unique_message <- "Non-unique names in decorators"
if (isTRUE(out_message)) {
out_message <- unique_message
} else {
out_message <- paste0(out_message, '. Also, ', tolower(unique_message))

Check warning on line 358 in R/utils.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/utils.R,line=358,col=46,[quotes_linter] Only use double-quotes.
}
}
if (isTRUE(out_message)) {
out_message
Expand Down

0 comments on commit 5576f60

Please sign in to comment.