Actions
Patch #34399
closedUse sum { ... } instead of map { ... }.sum
Description
The attached patch removes unnecessary map/collect method calls. I have generated the attached patch with rubocop-performance 1.9.0.
Files
Actions
Description
The attached patch removes unnecessary map/collect method calls. I have generated the attached patch with rubocop-performance 1.9.0.
Files