returning previously if there is no formulae to upgrade

resolves #20177
This commit is contained in:
thibhero 2025-06-26 13:06:57 -04:00
parent 4fd7c6fa8d
commit 06cb0cd197

View File

@ -236,6 +236,8 @@ module Homebrew
verbose: args.verbose?,
)
return false if formulae_installer.blank?
dependants = Upgrade.dependants(
formulae_to_install,
flags: args.flags_only,