From ecc01317b8756fa3bcf81b8d08830244a9454f6d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 28 May 2014 12:58:08 -0500 Subject: versions: drop redundant pathname creation --- Library/Homebrew/cmd/versions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3