Use StandardLoader when we know the path already
This commit is contained in:
parent
686ab7ad7f
commit
caaa32325c
@ -202,7 +202,7 @@ class Formulary
|
||||
|
||||
possible_cached_formula = Pathname.new("#{HOMEBREW_CACHE_FORMULA}/#{ref}.rb")
|
||||
if possible_cached_formula.file?
|
||||
return FromPathLoader.new(possible_cached_formula.to_s)
|
||||
return StandardLoader.new(ref, possible_cached_formula)
|
||||
end
|
||||
|
||||
return StandardLoader.new(ref)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user