Commit 4f92cc88 authored by Sam Stewart's avatar Sam Stewart

[tweak] remove .to_a method since unnecessary with splat operator

parent 19ed7d8d
...@@ -164,7 +164,7 @@ module Pod ...@@ -164,7 +164,7 @@ module Pod
end end
def tarball_url_for(id) def tarball_url_for(id)
original_url, username, reponame = *(url.match(/[:\/]([\w\-]+)\/([\w\-]+)\.git/).to_a) original_url, username, reponame = *(url.match(/[:\/]([\w\-]+)\/([\w\-]+)\.git/))
"https://github.com/#{username}/#{reponame}/tarball/#{id}" "https://github.com/#{username}/#{reponame}/tarball/#{id}"
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment