From 44970f728b0460b7962f5b9302470b29e52f6e9f Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Mon, 9 Sep 2024 09:50:18 -0700 Subject: [PATCH] clean up fetch_bottle_tab --- Library/Homebrew/formula_installer.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 5ba60c9f8e..b3cfa61c14 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -1282,16 +1282,18 @@ on_request: installed_on_request?, options:) sig { void } def fetch_bottle_tab - @fetch_bottle_tab ||= begin + return if @fetch_bottle_tab + + begin formula.fetch_bottle_tab @bottle_tab_runtime_dependencies = formula.bottle_tab_attributes .fetch("runtime_dependencies", []).then { |deps| deps || [] } .each_with_object({}) { |dep, h| h[dep["full_name"]] = dep } .freeze - true rescue DownloadError, ArgumentError - @fetch_bottle_tab = T.let(true, T.nilable(TrueClass)) + # do nothing end + @fetch_bottle_tab = T.let(true, T.nilable(TrueClass)) end sig { void }