Actions
Refactor #37287
closedIterate on hashes when both key and value are used
Description
In various places we have patterns like hash.keys.each { |k| hash[k] }
(or with .keys.sort
). It's better to replace this with hash.each { |k, v| }
to avoid lookups.
Updated by Ewoud Kohl van Wijngaarden about 1 year ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|0085153c296214f2810cbde46b5ee7b3b24cef1c.
Actions