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
C: Performance/ChainArrayAllocation: Use unchained values_at! and compact! (followed by return array if required)
instead of chaining values_at...compact.
options.values_at("alpha", "beta", "gamma").compact.length > 1
^^^^^^^^
Thanks for resolving this issue @fatkodima.
I have not manually tested the patch but will in a couple of days if a new version doesn't get shipped by then.
Expected behavior
Expected RuboCop to suggest valid corrections.
Actual behavior
Problem
Hash instances do not respond to
:values_at!
Steps to reproduce the problem
Run RuboCop against the following code:
The text was updated successfully, but these errors were encountered: