mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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
|
|
@ -155,7 +155,7 @@ module Admin
|
|||
|
||||
# Set line color using a hash function
|
||||
@tickets = []
|
||||
@tickets_data.keys.each do |title|
|
||||
@tickets_data.each_key do |title|
|
||||
@tickets.append(short_title: title, color: "\##{Digest::MD5.hexdigest(title)[0..5]}")
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue