versions: drop redundant pathname creation
This commit is contained in:
parent
985eadbe69
commit
ecc01317b8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user