Compare pathnames directly

This commit is contained in:
Jack Nagel 2014-03-01 18:42:47 -06:00
parent 7966b29ac6
commit 6d949599b5

View File

@ -452,7 +452,7 @@ class Formula
# True if this formula is provided by Homebrew itself # True if this formula is provided by Homebrew itself
def core_formula? def core_formula?
path.realpath.to_s == Formula.path(name).to_s path.realpath == Formula.path(name)
end end
def self.path name def self.path name