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
Current implementation of `Style/RedundantConditional` cop doesn't
handle the case when RedundantConditional occured in the elsif node. As
a result, autocorrection fails.
This commit tweaks the cop so it handles the elsif nodes as well.
If "bad" code has
elsif
,Style/RedundantConditional
generates wrong code when autocorrect.Expected behavior
Autocorrection generates the following code.
Actual behavior
Autocorrection generates the following code actually.
Steps to reproduce the problem
test.rb
rubocop -a
RuboCop version
master(ce6483c)
The text was updated successfully, but these errors were encountered: