Skip to content

Commit d6a1c2b

Browse files
authored
Update normalize_decorators
Signed-off-by: Marcin <[email protected]>
1 parent abebae3 commit d6a1c2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/utils.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,9 @@ normalize_decorators <- function(decorators) {
417417
if (checkmate::test_names(names(decorators))) {
418418
lapply(decorators, list)
419419
} else {
420-
list(default = decorators)
420+
named <- which(names(decorators) != "")
421+
unnamed <- setdiff(1:length(decorators), named)
422+
c(list(default = decorators[unnamed]), lapply(decorators[named], list))
421423
}
422424
} else {
423425
decorators

0 commit comments

Comments
 (0)