From 1416da262b526ecbf9543682b8a269dd98334d87 Mon Sep 17 00:00:00 2001 From: thibhero Date: Sat, 3 May 2025 15:23:20 -0400 Subject: [PATCH] returning if formulae is empty --- Library/Homebrew/install.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/install.rb b/Library/Homebrew/install.rb index f001f41578..52e1fbb2da 100644 --- a/Library/Homebrew/install.rb +++ b/Library/Homebrew/install.rb @@ -332,6 +332,7 @@ module Homebrew # If asking the user is enabled, show dependency and size information. def ask(formulae, args:) + return if formulae.empty? ohai "Looking for bottles..." sized_formulae = compute_sized_formulae(formulae, args: args)