Lint/ShadowingOuterLocalVariable
does not take into account if
/else
branches
#12872
Labels
Lint/ShadowingOuterLocalVariable
does not take into account if
/else
branches
#12872
Lint/ShadowingOuterLocalVariable
appears to be incorrectly flagging using of a local variable in one branch of anif
/else
statement, where the other branch re-uses the same variable name for a block variable. Since only one of theif
/else
branches can ever execute, this should not cause any problems.Steps To Reproduce
Gemfile
:Expected behavior
No warnings.
Actual behavior
RuboCop version
The text was updated successfully, but these errors were encountered: