Skip to content

Commit

Permalink
protections
Browse files Browse the repository at this point in the history
  • Loading branch information
mrT23 committed Mar 5, 2024
1 parent d77db93 commit c7eb70d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pr_agent/tools/pr_code_suggestions.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ def _prepare_pr_code_suggestions(self) -> Dict:
suggestion_list = []
one_sentence_summary_list = []
for i, suggestion in enumerate(data['code_suggestions']):
continue
if get_settings().pr_code_suggestions.summarize:
if not suggestion or 'one_sentence_summary' not in suggestion or 'label' not in suggestion or 'relevant_file' not in suggestion:
get_logger().debug(f"Skipping suggestion {i + 1}, because it is invalid: {suggestion}")
Expand Down

0 comments on commit c7eb70d

Please sign in to comment.