Commit b255590d authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Fix the Security::Finding#valid? method visibility

parent ab383d9a
......@@ -81,16 +81,16 @@ module Gitlab
report_type.hash ^ location.fingerprint.hash ^ primary_fingerprint.hash
end
def valid?
scanner.present? && primary_identifier.present? && location.present?
end
protected
def primary_fingerprint
primary_identifier&.fingerprint
end
def valid?
scanner.present? && primary_identifier.present? && location.present?
end
private
def generate_project_fingerprint
......
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