mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 20:00:41 +08:00
Update pr_agent/algo/utils.py
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
This commit is contained in:
@ -588,8 +588,8 @@ def load_large_diff(filename, new_file_content_str: str, original_file_content_s
|
||||
return ""
|
||||
|
||||
try:
|
||||
original_file_content_str = original_file_content_str.rstrip() + "\n"
|
||||
new_file_content_str = new_file_content_str.rstrip() + "\n"
|
||||
original_file_content_str = (original_file_content_str or "").rstrip() + "\n"
|
||||
new_file_content_str = (new_file_content_str or "").rstrip() + "\n"
|
||||
diff = difflib.unified_diff(original_file_content_str.splitlines(keepends=True),
|
||||
new_file_content_str.splitlines(keepends=True))
|
||||
if get_settings().config.verbosity_level >= 2 and show_warning:
|
||||
|
Reference in New Issue
Block a user