aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-04-05 22:03:34 -0500
committerJack Nagel2014-04-05 22:03:40 -0500
commitb7d98f8330e5dc24cc073c8a1eea19be0208e52f (patch)
treec64b610f70ff5ad232270dda3750992db2c49f32
parent5c7ae48899cbd499438760f3e6a54bf5c37b732c (diff)
downloadhomebrew-b7d98f8330e5dc24cc073c8a1eea19be0208e52f.tar.bz2
Use StandardLoader when we know the path already
-rw-r--r--Library/Homebrew/formulary.rb2
1 files changed, 1 insertions, 1 deletions
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)