Skip to content

Commit

Permalink
Update update-report.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
XYC authored and XYC committed Oct 27, 2024
1 parent c582b11 commit 9d5ad2d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Library/Homebrew/cmd/update-report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,9 @@ def output_update_report
return if new_tag.blank? || new_tag == old_tag || args.quiet?

puts


new_tag_fork, new_tag_upstream = new_tag.split("-")

old_tag_fork, old_tag_upstream = old_tag.split("-") unless old_tag.blank?
old_tag_fork, old_tag_upstream = old_tag.split("-") if old_tag.present?
new_major_version, new_minor_version, new_patch_version = new_tag_upstream.split(".").map(&:to_i)
old_major_version, old_minor_version = (old_tag_upstream.split(".")[0, 2]).map(&:to_i) if old_tag_upstream.present?
if old_tag_upstream.blank? || new_major_version > old_major_version || new_minor_version > old_minor_version
Expand Down

0 comments on commit 9d5ad2d

Please sign in to comment.