versions: drop redundant pathname creation

This commit is contained in:
Jack Nagel 2014-05-28 12:58:08 -05:00
parent 985eadbe69
commit ecc01317b8

View File

@ -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