simpler solution

This commit is contained in:
mrT23
2023-10-08 16:57:22 +03:00
parent 1b3fb49f9c
commit e6548f4fe1
2 changed files with 2 additions and 5 deletions

View File

@ -196,10 +196,6 @@ class GitLabProvider(GitProvider):
return self.last_diff # fallback to last_diff if no relevant diff is found
def publish_code_suggestions(self, code_suggestions: list) -> bool:
if len(code_suggestions) > 1:
logging.debug(f"in gitlab we dont currently support publishing multiple code suggestions simultaneously")
return False
for suggestion in code_suggestions:
try:
body = suggestion['body']
@ -231,6 +227,7 @@ class GitLabProvider(GitProvider):
target_file, target_line_no)
except Exception as e:
logging.exception(f"Could not publish code suggestion:\nsuggestion: {suggestion}\nerror: {e}")
return True
def search_line(self, relevant_file, relevant_line_in_file):
target_file = None