You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe instead add a linter that lints else { if () ... } if there are no expressions after the if expr-block?
Might fit into brace_linter()"do not put { between else and if if the if branch is the only statement in the else block." or something more readable with the same intent...
MichaelChirico
changed the title
Extend if_switch_linter() for cases with braces
unnecessary_nesting_linter() can catch else { if () } where the braces could be dropped
Dec 17, 2023
else {
is not considered by the current logic.The text was updated successfully, but these errors were encountered: