Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix erroneous autocorrect of Style/HashEachMethods cop
Hash#sort returns an Array instance, and Array does not have `each_value`. https://docs.rubocop.org/rubocop/cops_style.html#stylehasheachmethods > If you have an array of two-element arrays, you can put parentheses around the block arguments to indicate that you’re not working with a hash, and suppress RuboCop offenses.
- Loading branch information