Commit fb17006c authored by Jonathan Schafer's avatar Jonathan Schafer

Fix static analysis issues

parent 5c3ab45f
...@@ -62,7 +62,6 @@ module Security ...@@ -62,7 +62,6 @@ module Security
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def create_or_find_vulnerability_finding(finding, create_params) def create_or_find_vulnerability_finding(finding, create_params)
find_params = { find_params = {
scanner: scanners_objects[finding.scanner.key], scanner: scanners_objects[finding.scanner.key],
primary_identifier: identifiers_objects[finding.primary_identifier.key], primary_identifier: identifiers_objects[finding.primary_identifier.key],
...@@ -82,7 +81,6 @@ module Security ...@@ -82,7 +81,6 @@ module Security
end end
def update_vulnerability_scanner(finding) def update_vulnerability_scanner(finding)
scanner = scanners_objects[finding.scanner.key] scanner = scanners_objects[finding.scanner.key]
scanner.update!(finding.scanner.to_hash) scanner.update!(finding.scanner.to_hash)
end end
......
--- ---
title: Fix scanner check when creating vulnerability findings title: Fix scanner check when creating vulnerability findings
merge_request: merge_request: 39500
author: author:
type: fixed type: fixed
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