Skip to content

Commit

Permalink
Fix FromDefaultNameLoader.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Feb 14, 2024
1 parent b717f5d commit db8bdc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/formulary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,9 @@ def self.try_new(ref, from: T.unsafe(nil), warn: false)
return unless (name = ref[HOMEBREW_DEFAULT_TAP_FORMULA_REGEX, :name])
return unless (tap = CoreTap.instance).installed?

super("#{tap}/#{name}")
return unless (loader = super("#{tap}/#{token}", warn: warn))

loader if loader.path.exist?
end
end

Expand Down

0 comments on commit db8bdc6

Please sign in to comment.