From 41b235584feeb492d082cdc7bbb735cc49b08180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 26 Dec 2020 23:18:43 +0100 Subject: lua: fix luacheck warnings These are either accidentally global or unused variables. In the file type pluging the mime type variable was wrongly scoped, meaning the text/plain settings applied to all otherwise unknown files. --- lua/vis.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua/vis.lua') diff --git a/lua/vis.lua b/lua/vis.lua index dd17192..699d2e2 100644 --- a/lua/vis.lua +++ b/lua/vis.lua @@ -103,7 +103,7 @@ end -- Checks whether a subsequent @{require} call will succeed. -- @tparam string name the module name to check -- @treturn bool whether the module was found -vis.module_exist = function(vis, name) +vis.module_exist = function(_, name) for _, searcher in ipairs(package.searchers or package.loaders) do local loader = searcher(name) if type(loader) == 'function' then -- cgit v1.2.3