Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com>
  • Loading branch information
gitworkflows authored Jan 29, 2025
1 parent 4f470ea commit 3a25421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pr_insight/algo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,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 or "").rstrip() + "\n"
new_file_content_str = (new_file_content_str or "").rstrip() + "\n"
original_file_content_str = (original_file_content_str or "").rstrip()
new_file_content_str = (new_file_content_str or "").rstrip()
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 3a25421

Please sign in to comment.