Skip to content

Commit

Permalink
Remove call. from manually crafter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo committed Jul 4, 2024
1 parent 40eab2c commit f626690
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/prune_tags.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ prune_tags <- function(x, lost_action = c("error", "warning", "none")) {
lost_tags_txt
)
if (lost_action == "warning") {
warning(warningCondition(msg, class = "linelist_warning"), call. = FALSE)
# nolint next: condition_call_linter.
warning(warningCondition(msg, class = "linelist_warning"))
}
if (lost_action == "error") {
stop(errorCondition(msg, class = "linelist_error"), call. = FALSE)
# nolint next: condition_call_linter.
stop(errorCondition(msg, class = "linelist_error"))
}
}

Expand Down

0 comments on commit f626690

Please sign in to comment.