Commit 461622a2 authored by Subashis's avatar Subashis

Use safe navigation operator and DRY

parent 5482501f
...@@ -116,8 +116,7 @@ module Types ...@@ -116,8 +116,7 @@ module Types
def location def location
object_location = object.finding&.location object_location = object.finding&.location
object_location.merge!(blob_path: object.blob_path).compact! object_location&.merge(blob_path: object.blob_path, report_type: object.report_type)&.compact
object_location.merge(report_type: object.report_type)
end end
def scanner def scanner
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment