We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
a = if b b else c + d end
Should auto correct to:
a = b || (c + d)
a = b || +d
rubocop -V 1.4.2 (using Parser 2.7.2.0, rubocop-ast 1.1.1, running on ruby 2.7.2 x86_64-darwin19)
The text was updated successfully, but these errors were encountered:
Style/RedundantCondition
[Fix rubocop#9105] Fix an incorrect auto-correct for `Style/Redundant…
8d4f95a
…Condition` Fixes rubocop#9105 This PR fixes an incorrect auto-correct for `Style/RedundantCondition` when using operator method in `else`.
[Fix #9105] Fix an incorrect auto-correct for Style/RedundantCondition
f2c05aa
Fixes #9105 This PR fixes an incorrect auto-correct for `Style/RedundantCondition` when using operator method in `else`.
Successfully merging a pull request may close this issue.
Expected behavior
Should auto correct to:
Actual behavior
RuboCop version
The text was updated successfully, but these errors were encountered: