From 63d0a5bf75a228e489db753f31a11778a46d6736 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 14 Apr 2014 19:07:26 -0500 Subject: [PATCH] Don't walk tap twice just to get the formula path again, it's slow --- Library/Contributions/cmd/brew-readall.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Contributions/cmd/brew-readall.rb b/Library/Contributions/cmd/brew-readall.rb index d0bc4ed22a..5316fbbd6d 100755 --- a/Library/Contributions/cmd/brew-readall.rb +++ b/Library/Contributions/cmd/brew-readall.rb @@ -16,7 +16,7 @@ else tap = Pathname("#{HOMEBREW_LIBRARY}/Taps/#{tap_dir}") raise "#{tap} does not exist!" unless tap.exist? tap.find_formula do |f| - formulae << (tap/f).tap_ref + formulae << tap/f end end