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
… argument for method in else branch is hash without braces
Update spec/rubocop/cop/style/redundant_condition_spec.rb
Co-authored-by: Koichi ITO <koic.ito@gmail.com>
Expected behavior
Running
rubocop --auto-correct
should not result in broken code.Actual behavior
Running rubocop 1.29.0 triggers a correction from
Style/RedundantCondition
on this code:changing it to this:
which is incorrect and is rejected by ruby requiring it to be changed to:
in order to work.
Steps to reproduce the problem
See above.
RuboCop version
The text was updated successfully, but these errors were encountered: