Refactor #37287
closed
Iterate on hashes when both key and value are used
Added by Ewoud Kohl van Wijngaarden 12 months ago.
Updated 9 months ago.
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.
- Status changed from New to Ready For Testing
- Assignee set to Ewoud Kohl van Wijngaarden
- Pull request https://github.com/theforeman/foreman/pull/10108 added
- Fixed in Releases 3.11.0 added
- Status changed from Ready For Testing to Closed
- Triaged changed from No to Yes
Also available in: Atom
PDF