Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AshesITR committed Dec 16, 2023
1 parent 1146fe7 commit e1fac0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/lint.R
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,7 @@ handle_expr_level_lints <- function(lints, expression_linter_names, supports_exp
for (linter_name in expression_linter_names[needs_running & supports_exprlist]) {
linter_fun <- linters[[linter_name]]
if (!any(expr_linter_cached[, linter_name])) {

Check warning on line 897 in R/lint.R

View workflow job for this annotation

GitHub Actions / lint

file=R/lint.R,line=897,col=9,[if_not_else_linter] Prefer `if (A) x else y` to the less-readable `if (!A) y else x` in a simple if/else statement.
exprs_to_lint <- exprs_expression
exprlist_to_lint <- collapse_exprs(exprs_to_lint, expr_file = expr_file)
} else {
exprs_to_lint <- exprs_expression[!expr_linter_cached[, linter_name]]
Expand Down

0 comments on commit e1fac0f

Please sign in to comment.