Skip to content

Commit

Permalink
remove unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot-preview[bot] committed Oct 15, 2024
1 parent babc2d6 commit bc70e42
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions R/module_transform_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,11 @@ ui_transform_data <- function(id, transformers = list(), class = "well") {
}

#' @rdname module_transform_data
srv_transform_data <- function(id, data, transformers, modules, is_transformer_failed = reactiveValues()) {
srv_transform_data <- function(id, data, transformers = list(), modules, is_transformer_failed = reactiveValues()) {
checkmate::assert_string(id)
assert_reactive(data)
checkmate::assert_list(transformers, "teal_transform_module", null.ok = TRUE)
checkmate::assert_list(transformers, "teal_transform_module")
checkmate::assert_class(modules, "teal_module")
if (length(transformers) == 0L) {
return(data)
}
labels <- lapply(transformers, function(x) attr(x, "label"))
ids <- get_unique_labels(labels)
names(transformers) <- ids
Expand Down

0 comments on commit bc70e42

Please sign in to comment.