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
…alBranches`
Fixesrubocop#9980.
This PR fixes a false positive for `Style/IdenticalConditionalBranches`
when assigning to a variable used in a condition.
Expected behavior
I expect safe autocorrection not to break my existing ruby code.
Actual behavior
Running a cop marked as safe breaks my existing ruby code.
Steps to reproduce the problem
Given
test.rb
When I run
rubocop -a --only Style/IdenticalConditionalBranches
, it autocorrects my file to:RuboCop version
The text was updated successfully, but these errors were encountered: