Skip to content

Commit c80a46a

Browse files
committed
appease rubocop
Signed-off-by: Amndeep Singh Mann <[email protected]>
1 parent cc0349f commit c80a46a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/heimdall_tools/asff_mapper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module HeimdallTools
3131
end
3232
end
3333

34-
# todo: use hash.dig and safe navigation operator throughout
34+
# TODO: use hash.dig and safe navigation operator throughout
3535
class ASFFMapper
3636
IMPACT_MAPPING = {
3737
CRITICAL: 0.9,
@@ -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.select { |pg| pg != product }.values.any? { |ig| ig.keys.include?(id) } ? "[#{product_name}] #{id}" : id
204+
item['id'] = product_groups.reject { |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)