Fix FromDefaultNameLoader.

This commit is contained in:
Markus Reiter 2024-02-14 23:08:48 +01:00
parent b717f5d954
commit fe1f6c95f5
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -747,7 +747,9 @@ module Formulary
return unless (name = ref[HOMEBREW_DEFAULT_TAP_FORMULA_REGEX, :name])
return unless (tap = CoreTap.instance).installed?
super("#{tap}/#{name}")
return unless (loader = super("#{tap}/#{name}", warn: warn))
loader if loader.path.exist?
end
end