Skip to content

Commit

Permalink
fix: handling end of issue description
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeDavis-Ibexlabs committed Aug 23, 2024
1 parent c929e5c commit 7f88cc9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def serialize_finding_attributes(self, finding_file_key: str, findings: dict) ->
if attribute not in [ "ruleId", "message" ]:
result_str += attribute + ' = ' + str(findings[attribute]) + "\n"

if result_str[-2:] == ', ':
return result_str[:-2]
if result_str[-1:] == '\n':
return result_str[:-1]

return result_str

0 comments on commit 7f88cc9

Please sign in to comment.