aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-01 17:49:57 -0600
committerJack Nagel2014-03-01 17:49:57 -0600
commit487445e3a1465935e43f3189dff30b5dfdf14044 (patch)
treeae4d11119a3b9d68fc2b82da294f900421ed3ee5 /Library
parente724af2c7a7fb0a8e25d929e3a1c7ac666c72698 (diff)
downloadhomebrew-487445e3a1465935e43f3189dff30b5dfdf14044.tar.bz2
Make conditional more obvious
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index c632fba2e..1a7b0dc69 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -394,9 +394,12 @@ class Formula
if name =~ %r{(.+)/(.+)/(.+)}
tap_name = "#$1-#$2".downcase
tapd = Pathname.new("#{HOMEBREW_LIBRARY}/Taps/#{tap_name}")
- tapd.find_formula do |relative_pathname|
- return "#{tapd}/#{relative_pathname}" if relative_pathname.stem.to_s == $3
- end if tapd.directory?
+
+ if tapd.directory?
+ tapd.find_formula do |relative_pathname|
+ return "#{tapd}/#{relative_pathname}" if relative_pathname.stem.to_s == $3
+ end
+ end
end
# Otherwise don't resolve paths or URLs
return name