Skip to content

Commit 00c313e

Browse files
author
Valentijn Scholten
committed
cleaner fix
1 parent e3f7546 commit 00c313e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

dojo/importers/default_reimporter.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ def process_findings(
220220
# Clean any endpoints that are on the finding
221221
self.endpoint_manager.clean_unsaved_endpoints(unsaved_finding.unsaved_endpoints)
222222
# Calculate the hash code to be used to identify duplicates
223-
unsaved_finding.hash_code = self.calculate_unsaved_finding_hash_code(unsaved_finding)
223+
unsaved_finding.set_hash_code(True)
224+
224225
deduplicationLogger.debug(f"unsaved finding's hash_code: {unsaved_finding.hash_code}")
225226
# Match any findings to this new one coming in
226227
matched_findings = self.match_new_finding_to_existing_finding(unsaved_finding)
@@ -770,9 +771,3 @@ def process_results(
770771
serialized_untouched,
771772
)
772773
return self.new_items, self.reactivated_items, self.to_mitigate, self.untouched
773-
774-
def calculate_unsaved_finding_hash_code(
775-
self,
776-
unsaved_finding: Finding,
777-
) -> str:
778-
return unsaved_finding.set_hash_code(True)

0 commit comments

Comments
 (0)