~tomleb/repo-url.nvim

ca85eaad08f847ec009ee579b9979647f82a5efe — Tom Lebreux 4 months ago 5431cbf master v0.1.0
Remove unused var
1 files changed, 2 insertions(+), 4 deletions(-)

M lua/repo-url/init.lua
M lua/repo-url/init.lua => lua/repo-url/init.lua +2 -4
@@ 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