feat: Improve patch formatting and handle empty data in pr_code_suggestions.py

This commit is contained in:
mrT23
2024-01-29 21:52:54 +02:00
parent 6565556e01
commit 0d86779799
6 changed files with 15 additions and 16 deletions

View File

@ -253,6 +253,8 @@ class PRCodeSuggestions:
"""
suggestion_list = []
if not data:
return suggestion_list
for suggestion in data:
suggestion_list.append(suggestion)
data_sorted = [[]] * len(suggestion_list)