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
…s the last one in function body
Sometimes we assign a conditions used in "if" test to a variable before "if" statement. In such case it's not the only statement in the block, but it should be detected anyway.
closesShopify#314
Overview
When extracting the
if
condition into a variable, the rule is suddenly satisfied.Not sure if it's a bug or not, but this feel like it could be at least improved (yet I don't know if it's really feasible)
Examples:
The following is considered warning
yet, the following is not
Checklist
The text was updated successfully, but these errors were encountered: