Revision 0085153c
Added by Ewoud Kohl van Wijngaarden 2 months ago
lib/tasks/exception.rake | ||
---|---|---|
end
|
||
end
|
||
|
||
result.keys.sort.each do |k|
|
||
v = result[k]
|
||
result.sort.each do |k, v|
|
||
puts " * [[#{k}]] - #{v}"
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #37287 - Iterate on hashes when both key and value are used
This replaces the `hash.keys.each { |k| hash[k] }` and `hash.keys.sort`
patterns with `hash.each { |k, v| }` where it makes sense. This avoids
doing hash lookups when you already know the value anyway.