diff --git a/pr_agent/tools/pr_code_suggestions.py b/pr_agent/tools/pr_code_suggestions.py index cf6c18c9..e0ccc033 100644 --- a/pr_agent/tools/pr_code_suggestions.py +++ b/pr_agent/tools/pr_code_suggestions.py @@ -563,8 +563,6 @@ class PRCodeSuggestions: code_suggestions = [] if not data['code_suggestions']: - - if not filtered_suggestions: get_logger().info('No suggestions found to improve this PR.') if self.progress_response: return self.git_provider.edit_comment(self.progress_response, @@ -572,7 +570,7 @@ class PRCodeSuggestions: else: return self.git_provider.publish_comment('No suggestions found to improve this PR.') - for d in filtered_suggestions: + for d in data['code_suggestions']: try: if get_settings().config.verbosity_level >= 2: get_logger().info(f"suggestion: {d}")