Skip to content

Commit

Permalink
edit steps_to_reproduce locations found
Browse files Browse the repository at this point in the history
  • Loading branch information
testaccount90009 committed Dec 12, 2024
1 parent 582e7aa commit b8c8e64
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 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 Found**: " + locations if locations is not None else None

if "topFix" in node:
try:
Expand Down Expand Up @@ -176,10 +175,7 @@ def _build_common_output(node, lib_name=None):
)
if locations and len(", ".join(locations)) > 3999:
locations = [loc[:3999] for loc in locations]
locations = ", ".join(locations)[:3999]
steps_to_reproduce = "**Locations Found**: " + locations if locations is not None else None
else:
steps_to_reproduce = ", ".join(locations)
steps_to_reproduce = "**Locations Found**: " + ", ".join(locations) if locations is not None else None

filepaths = filepaths

Expand Down

0 comments on commit b8c8e64

Please sign in to comment.