@@ 723,7 723,6 @@ M.get_gomod_tree_url = function()
ref = gomodcache.commit,
filepath = '',
}
- local stuff = { hostname = hostname, info = info }
local urls = pick_urls(hostname)
if urls == nil then
error(string.format("hostname '%s' not matching any URLs", hostname))
@@ 731,7 730,7 @@ M.get_gomod_tree_url = function()
if not urls.tree_url then
error(string.format("tree_url() not defined for hostname '%s'", hostname))
end
- return urls.tree_url(stuff.info)
+ return urls.tree_url(info)
end
end
@@ 781,7 780,6 @@ M.get_gosum_tree_url = function()
ref = gomodcache.commit,
filepath = '',
}
- local stuff = { hostname = hostname, info = info }
local urls = pick_urls(hostname)
if urls == nil then
error(string.format("hostname '%s' not matching any URLs", hostname))
@@ 789,7 787,7 @@ M.get_gosum_tree_url = function()
if not urls.tree_url then
error(string.format("tree_url() not defined for hostname '%s'", hostname))
end
- return urls.tree_url(stuff.info)
+ return urls.tree_url(info)
end
end