mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 19:05:18 +00:00
implementation: Remove the duplicate filtering logic
Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com>
This commit is contained in:
parent
1315fa651b
commit
d80e229bdf
1 changed files with 1 additions and 2 deletions
|
|
@ -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.')
|
||||
|
|
|
|||
Loading…
Reference in a new issue