aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2014-04-06 00:31:07 -0500
committerJack Nagel2014-04-06 00:31:07 -0500
commitc553a0bebc3354f9e6dc165b57c3a678ce5eb621 (patch)
tree6af0e73835e9521d16a7c4638bf748aeac50d4b3 /Library/Homebrew/formula.rb
parent5724bf0bf64db43228bed989a6c7aa8b81a5263f (diff)
downloadhomebrew-c553a0bebc3354f9e6dc165b57c3a678ce5eb621.tar.bz2
Remove now unnecessary realpath calls
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index d4225261a..5673c898a 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -404,11 +404,11 @@ class Formula
end
def tap?
- !!path.realpath.to_s.match(HOMEBREW_TAP_DIR_REGEX)
+ HOMEBREW_TAP_DIR_REGEX === path
end
def tap
- if path.realpath.to_s =~ HOMEBREW_TAP_DIR_REGEX
+ if path.to_s =~ HOMEBREW_TAP_DIR_REGEX
"#$1/#$2"
elsif core_formula?
"Homebrew/homebrew"
@@ -419,7 +419,7 @@ class Formula
# True if this formula is provided by Homebrew itself
def core_formula?
- path.realpath == Formula.path(name)
+ path == Formula.path(name)
end
def self.path name