From 387bfd972edd6c87411204a2b449cfcd58638372 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Wed, 28 Feb 2024 14:41:39 -0500 Subject: [PATCH] dev-cmd/bump: hide version syncing when empty list --- Library/Homebrew/dev-cmd/bump.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index a12ca2e0ca..77ccaf6224 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -472,10 +472,13 @@ module Homebrew if formula_or_cask.is_a?(Formula) require "formula_auditor" auditor = FormulaAuditor.new(formula_or_cask) - puts <<~EOS if auditor.synced_with_other_formulae? - Version syncing: #{title_name} version should be kept in sync with - #{synced_with(auditor, formula_or_cask, new_version.general).join(", ")}. - EOS + if auditor.synced_with_other_formulae? + outdated_synced_formulae = synced_with(auditor, formula_or_cask, new_version.general) + puts <<~EOS if outdated_synced_formulae.present? + Version syncing: #{title_name} version should be kept in sync with + #{outdated_synced_formulae.join(", ")}. + EOS + end end puts <<~EOS unless args.no_pull_requests? Open pull requests: #{open_pull_requests || "none"}