returning if formulae is empty

This commit is contained in:
thibhero 2025-05-03 15:23:20 -04:00
parent d19de85896
commit 1416da262b

View File

@ -332,6 +332,7 @@ module Homebrew
# If asking the user is enabled, show dependency and size information. # If asking the user is enabled, show dependency and size information.
def ask(formulae, args:) def ask(formulae, args:)
return if formulae.empty?
ohai "Looking for bottles..." ohai "Looking for bottles..."
sized_formulae = compute_sized_formulae(formulae, args: args) sized_formulae = compute_sized_formulae(formulae, args: args)