Skip to content

Commit

Permalink
Restore original line spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyskoedijk committed Jul 31, 2024
1 parent f4ca9a3 commit 6743e98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nuget/lib/dependabot/nuget/file_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ def only_deleted_lines?(original_content, updated_content)
# This prevents false positives when there are trailing empty lines in the original content, for example.
original_lines = (original_content&.lines || []).map(&:strip).reject(&:empty?)
updated_lines = updated_content.lines.map(&:strip).reject(&:empty?)

original_lines.count > updated_lines.count
end
end
Expand Down

0 comments on commit 6743e98

Please sign in to comment.