From caaa32325cf7bcf03d07f7525da082f53217cceb Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 5 Apr 2014 22:03:34 -0500 Subject: Use StandardLoader when we know the path already --- Library/Homebrew/formulary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index 9dc7289c3..ff1dcce38 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -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) -- cgit v1.2.3