Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Feb 6, 2024
1 parent 3007fa3 commit c743c99
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions R/data_modify.R
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,7 @@ data_modify.grouped_df <- function(data, ..., .if = NULL, .at = NULL, .modify =
found <- .at[.at %in% column_names]
if (length(found)) {
for (i in found) {
result <- tryCatch(
.modify(data[[i]]),
warning = function(e) e,
error = function(e) e
)
result <- tryCatch(.modify(data[[i]]), warning = function(e) e, error = function(e) e)
if (inherits(result, "error")) {
insight::format_error(
paste0("Error in modifying variable \"", i, "\": ", result$message),
Expand Down

0 comments on commit c743c99

Please sign in to comment.