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
Fixesrubocop#10899.
This PR fixes an error for `Lint/ShadowingOuterLocalVariable`
when the same variable name as a block variable is used in return
value assignment of `if`.
Fixes#10899.
This PR fixes an error for `Lint/ShadowingOuterLocalVariable`
when the same variable name as a block variable is used in return
value assignment of `if`.
Expected behavior
Exit without error.
Actual behavior
Steps to reproduce the problem
Lint following content:
RuboCop version
1.34.1 (using Parser 3.1.2.1, rubocop-ast 1.21.0, running on ruby 2.7.6 arm64-darwin20)
The text was updated successfully, but these errors were encountered: