diff options
| author | Jack Nagel | 2014-04-06 00:31:07 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-06 00:31:07 -0500 |
| commit | c553a0bebc3354f9e6dc165b57c3a678ce5eb621 (patch) | |
| tree | 6af0e73835e9521d16a7c4638bf748aeac50d4b3 /Library/Homebrew/formula.rb | |
| parent | 5724bf0bf64db43228bed989a6c7aa8b81a5263f (diff) | |
| download | homebrew-c553a0bebc3354f9e6dc165b57c3a678ce5eb621.tar.bz2 | |
Remove now unnecessary realpath calls
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 6 |
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 |
