File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments