aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-28 12:58:08 -0500
committerJack Nagel2014-05-28 14:00:26 -0500
commit6b56bdde9f47dfa14b2fcf9819435943c846d581 (patch)
tree48ece6d02e65bffa8bf058fcc1dbe30acaea4e31 /Library
parent280dcfd1ca70d42dd3a6735f5d6fb1f6728e0c60 (diff)
downloadhomebrew-6b56bdde9f47dfa14b2fcf9819435943c846d581.tar.bz2
versions: drop redundant pathname creation
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/versions.rb2
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