diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 1a7b0dc696..ca943a27df 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -452,7 +452,7 @@ class Formula # True if this formula is provided by Homebrew itself def core_formula? - path.realpath.to_s == Formula.path(name).to_s + path.realpath == Formula.path(name) end def self.path name