Actions
Patch #34399
closedUse sum { ... } instead of map { ... }.sum
Patch #34399:
Use 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