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
…nCompact`
Fixesrubocop#11173.
This PR fixes an incorrect autocorrect for `Style/CollectionCompact`
when using `reject` with block pass arg and no parentheses.
Expected behavior
Same offence like with parentheses -
Style/CollectionCompact: Use compact instead of reject(&:nil?)
Actual behavior
Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: