Skip to content
Snippets Groups Projects
Commit ecc01317 authored by Jack Nagel's avatar Jack Nagel
Browse files

versions: drop redundant pathname creation

parent 985eadbe
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment