Skip to content

Commit 7dc69d4

Browse files
committed
chore: remove explicit returns
1 parent 67321e1 commit 7dc69d4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

R/tm_outliers.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,12 +536,12 @@ srv_outliers <- function(id, data, reporter, filter_panel_api, outlier_var,
536536
# this is utils function that converts a %>% NULL %>% b into a %>% b
537537
remove_pipe_null <- function(x) {
538538
if (length(x) == 1) {
539-
return(x)
539+
x
540540
}
541541
if (identical(x[[1]], as.name("%>%")) && is.null(x[[3]])) {
542-
return(remove_pipe_null(x[[2]]))
542+
remove_pipe_null(x[[2]])
543543
}
544-
return(as.call(c(x[[1]], lapply(x[-1], remove_pipe_null))))
544+
as.call(c(x[[1]], lapply(x[-1], remove_pipe_null)))
545545
}
546546

547547
qenv <- teal.code::eval_code(

vignettes/decorate-module-output.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ app <- init(
111111
select = select_spec(
112112
choices = variable_choices(data[["ADSL"]], subset = function(data) {
113113
idx <- !vapply(data, inherits, logical(1), c("Date", "POSIXct", "POSIXlt"))
114-
return(names(data)[idx])
114+
names(data)[idx]
115115
}),
116116
selected = "COUNTRY",
117117
multiple = TRUE,
@@ -123,7 +123,7 @@ app <- init(
123123
select = select_spec(
124124
choices = variable_choices(data[["ADSL"]], subset = function(data) {
125125
idx <- vapply(data, is.factor, logical(1))
126-
return(names(data)[idx])
126+
names(data)[idx]
127127
}),
128128
selected = "SEX"
129129
)

0 commit comments

Comments
 (0)