Update Library/Homebrew/upgrade.rb

Co-authored-by: Carlo Cabrera <github@carlo.cab>
This commit is contained in:
Thibaut Hérault 2025-07-01 09:59:54 -04:00 committed by GitHub
parent 006d3779f3
commit a6aad3d12f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -375,7 +375,7 @@ module Homebrew
puts formulae_upgrades.join(", ")
end
upgradeable = upgradeable.reject { |f| FormulaInstaller.installed.to_a.include?(f) }
upgradeable.reject! { |f| FormulaInstaller.installed.include?(f) }
return if upgradeable.blank?