From 9d5ad2db75dc99ff4dcf81a5dce4106f12a6f513 Mon Sep 17 00:00:00 2001 From: XYC Date: Sun, 27 Oct 2024 19:32:55 -0400 Subject: [PATCH] Update update-report.rb --- Library/Homebrew/cmd/update-report.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb index 6799a8227f9a0..feec524d41fc6 100644 --- a/Library/Homebrew/cmd/update-report.rb +++ b/Library/Homebrew/cmd/update-report.rb @@ -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