diff options
| author | Jack Nagel | 2014-02-19 16:53:18 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-19 16:53:18 -0500 |
| commit | 1f39d6c2d1b11f7a6c37056ad72c10479a057f86 (patch) | |
| tree | 80d96424a8a65bfe11515b2864fe6d7247b717b3 /Library | |
| parent | 7591b79d7de68fcf2c3a1cbba4afaf63992ebc29 (diff) | |
| download | brew-1f39d6c2d1b11f7a6c37056ad72c10479a057f86.tar.bz2 | |
Eliminate some Pathname -> String -> Pathname conversions
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index b733242e8..d5e4fde22 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -44,7 +44,7 @@ class Formulary unless have_klass puts "#{$0}: loading #{path}" if ARGV.debug? begin - require path.to_s + require path rescue NoMethodError # This is a programming error in an existing formula, and should not # have a "no such formula" message. @@ -110,7 +110,7 @@ class Formulary end def get_formula - klass.new(name, path.to_s) + klass.new(name, path) end end @@ -134,7 +134,7 @@ class Formulary end def get_formula - return klass.new(name, path.to_s) + return klass.new(name, path) end end @@ -146,7 +146,7 @@ class Formulary end def get_formula - klass.new(tapped_name, path.to_s) + klass.new(tapped_name, path) end end |
