Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect replacement recommendation for Performance/ChainArrayAllocation #196

Merged
merged 1 commit into from Nov 23, 2020

Conversation

fatkodima
Copy link
Contributor

@fatkodima fatkodima commented Nov 23, 2020

Closes #185

The real change is this line - https://github.com/rubocop-hq/rubocop-performance/pull/196/files#diff-aadc09c37851b4bcdde6d9af4f194ba5bd2578117e64170d87d2174e17772a63R52

Other changes are a small refactoring rewriting a patterns with %CONST feature.

cc @marcandre

@marcandre
Copy link
Contributor

Nice refactoring. So the bug was simply a typo, then...

@koic koic merged commit d460877 into rubocop:master Nov 23, 2020
@koic
Copy link
Member

koic commented Nov 23, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect recommendation suggested by Performance/ChainArrayAllocation Cop
3 participants