Skip to content

Commit c6e60a7

Browse files
committed
Removed minor optimisation which could be the cause of bugs in case same vulnerability affects different packages
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
1 parent 2bff601 commit c6e60a7

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

vulnerabilities/import_runner.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ def _bulk_insert_impacted_and_resolved_packages(
212212

213213
for advisory in batch:
214214
vuln = _advisory_to_vulnerability(advisory, vulnerabilities)
215-
vulnerabilities.remove(vuln) # minor optimization
216215

217216
for impacted_purl in advisory.impacted_package_urls:
218217
# TODO Figure out when/how it happens that a package is missing from the dict and fix it

0 commit comments

Comments
 (0)