Fix Performance/HashEachMethods offenses
values.each and keys.each methods are depreciated, so they have replaced by each_value and each_key respectively. This has done manually. Closes https://github.com/openSUSE/osem/issues/1825
This commit is contained in:
parent
99ab06d117
commit
505d9da3d4
6 changed files with 6 additions and 15 deletions
|
|
@ -99,7 +99,7 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def normalize_array_length(hashmap, length)
|
||||
hashmap.each do |_, value|
|
||||
hashmap.each_value do |value|
|
||||
if value.length < length
|
||||
value.fill(value[-1], value.length...length)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue