Project

General

Profile

Actions

Patch #34399

closed

Use sum { ... } instead of map { ... }.sum

Added by Go MAEDA almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

The attached patch removes unnecessary map/collect method calls. I have generated the attached patch with rubocop-performance 1.9.0.


Files

performance-sum.diff (1.87 KB) performance-sum.diff Go MAEDA, 2020-12-06 02:28
Actions

Also available in: Atom PDF