diff options
| author | Jack Nagel | 2014-05-28 12:58:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-28 14:00:26 -0500 |
| commit | ecc01317b8756fa3bcf81b8d08830244a9454f6d (patch) | |
| tree | e97bf1602e64e7bc952c41af328b7077e32140b9 /Library | |
| parent | 985eadbe693c99c0173502e09b1756b10a4aa144 (diff) | |
| download | brew-ecc01317b8756fa3bcf81b8d08830244a9454f6d.tar.bz2 | |
versions: drop redundant pathname creation
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/versions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index e4b3c1d3b..8332d9133 100644 --- a/Library/Homebrew/cmd/versions.rb +++ b/Library/Homebrew/cmd/versions.rb @@ -101,7 +101,7 @@ class Formula def formula_for_sha sha, &block mktemp do - path = Pathname.new(Pathname.pwd+"#{name}.rb") + path = Pathname.pwd.join("#{name}.rb") path.write text_from_sha(sha) # Unload the class so Formula#version returns the correct value |
