Skip to content

Commit 581c81d

Browse files
committed
Remove unnecessary global statement
This function *changes* cve_map by calling its pop() method, but it does not *reassign* cve_map. Removing this unnecessary statement gets rid of an error from our flake8 pre-commit linter.
1 parent 392d653 commit 581c81d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/cyhy_cvesync/cve_sync.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ async def process_cve_json(
7878
metrics = cve.get("cve", {}).get("metrics", {}).keys()
7979
if metrics & preferred_cvss_metrics_set:
8080
# Check if the CVE document already exists in the database
81-
global cve_map
8281
async with cve_map_lock:
8382
cve_doc = cve_map.pop(cve_id, None)
8483

0 commit comments

Comments
 (0)