Skip to content

Commit 7f88cc9

Browse files
fix: handling end of issue description
1 parent c929e5c commit 7f88cc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def serialize_finding_attributes(self, finding_file_key: str, findings: dict) ->
3434
if attribute not in [ "ruleId", "message" ]:
3535
result_str += attribute + ' = ' + str(findings[attribute]) + "\n"
3636

37-
if result_str[-2:] == ', ':
38-
return result_str[:-2]
37+
if result_str[-1:] == '\n':
38+
return result_str[:-1]
39+
3940
return result_str

0 commit comments

Comments
 (0)