Skip to content

Commit

Permalink
Update test-unnecessary_nesting_linter.R
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Oct 26, 2024
1 parent 0269a5f commit c6929fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-unnecessary_nesting_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ test_that("unnecessary_nesting_linter blocks disallowed usages", {

test_that("else that can drop braces is found", {
linter <- unnecessary_nesting_linter()
lint_msg <- rex::rex("Simplify this condition by using 'else if' instead of 'else { if.")
lint_msg <- rex::rex("Simplify this condition by using 'else if' instead of 'else { if'.")

expect_lint(
trim_some("
Expand Down

0 comments on commit c6929fd

Please sign in to comment.