chore: Recover the original inline code logic

This commit is contained in:
diana-jung 2025-11-26 18:07:25 +09:00 committed by GitHub
parent d80e229bdf
commit 7b9e8bff3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -563,8 +563,6 @@ class PRCodeSuggestions:
code_suggestions = [] code_suggestions = []
if not data['code_suggestions']: if not data['code_suggestions']:
if not filtered_suggestions:
get_logger().info('No suggestions found to improve this PR.') get_logger().info('No suggestions found to improve this PR.')
if self.progress_response: if self.progress_response:
return self.git_provider.edit_comment(self.progress_response, return self.git_provider.edit_comment(self.progress_response,
@ -572,7 +570,7 @@ class PRCodeSuggestions:
else: else:
return self.git_provider.publish_comment('No suggestions found to improve this PR.') 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: try:
if get_settings().config.verbosity_level >= 2: if get_settings().config.verbosity_level >= 2:
get_logger().info(f"suggestion: {d}") get_logger().info(f"suggestion: {d}")