Skip to content

Commit cc0349f

Browse files
committed
hash.filter as an alias for hash.select was not in 2.5. using select instead.
Signed-off-by: Amndeep Singh Mann <[email protected]>
1 parent 63f868b commit cc0349f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/heimdall_tools/asff_mapper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def to_hdf
201201

202202
item = {}
203203
# add product name to id if any ids are the same across products
204-
item['id'] = product_groups.filter { |pg| pg != product }.values.any? { |ig| ig.keys.include?(id) } ? "[#{product_name}] #{id}" : id
204+
item['id'] = product_groups.select { |pg| pg != product }.values.any? { |ig| ig.keys.include?(id) } ? "[#{product_name}] #{id}" : id
205205

206206
item['title'] = "#{product_name}: #{group.map { |d| d['title'] }.uniq.join(';')}"
207207

0 commit comments

Comments
 (0)