Update Library/Homebrew/formula_installer.rb

Co-authored-by: Markus Reiter <me@reitermark.us>
This commit is contained in:
Douglas Eichelberger 2024-09-09 09:42:42 -07:00 committed by Douglas Eichelberger
parent c2b9555d0b
commit 17b6948933

View File

@ -1317,7 +1317,7 @@ on_request: installed_on_request?, options:)
self.class.fetched << formula
end
sig { returns(T.any(Bottle, Resource, Resource::Local)) }
sig { returns(Downloadable) }
def downloadable
if (bottle_path = formula.local_bottle_path)
Resource::Local.new(bottle_path)