Skip to content

Commit

Permalink
fix comma, remove redundant locations reference
Browse files Browse the repository at this point in the history
  • Loading branch information
testaccount90009 committed Dec 11, 2024
1 parent 51e7182 commit a1151e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dojo/tools/mend/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def _build_common_output(node, lib_name=None):
component_path = node["component"].get("path", None)
if component_path:
locations.append(component_path)
steps_to_reproduce = locations

if "topFix" in node:
try:
Expand Down Expand Up @@ -198,7 +197,7 @@ def _build_common_output(node, lib_name=None):
cvssv3=cvss3_vector,
cvssv3_score=float(cvss3_score) if cvss3_score is not None else None,
impact=impact,
steps_to_reproduce=steps_to_reproduce if steps_to_reproduce is not None else None
steps_to_reproduce=steps_to_reproduce if steps_to_reproduce is not None else None,
)
if cve:
new_finding.unsaved_vulnerability_ids = [cve]
Expand Down

0 comments on commit a1151e9

Please sign in to comment.