Skip to content

Commit

Permalink
Update pr_agent/algo/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: qodo-merge-pro-for-open-source[bot] <189517486+qodo-merge-pro-for-open-source[bot]@users.noreply.github.com>
  • Loading branch information
1 parent e431979 commit 2df4bc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pr_agent/algo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2df4bc8

Please sign in to comment.