diff --git a/pr_agent/tools/pr_code_suggestions.py b/pr_agent/tools/pr_code_suggestions.py index 17c7cc12..cf6c18c9 100644 --- a/pr_agent/tools/pr_code_suggestions.py +++ b/pr_agent/tools/pr_code_suggestions.py @@ -562,8 +562,7 @@ class PRCodeSuggestions: async def push_inline_code_suggestions(self, data): code_suggestions = [] - score_threshold = max(1, int(get_settings().pr_code_suggestions.suggestions_score_threshold)) - filtered_suggestions = [d for d in data['code_suggestions'] if int(d.get('score', 0)) >= score_threshold] + if not data['code_suggestions']: if not filtered_suggestions: get_logger().info('No suggestions found to improve this PR.')