diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-12-26 23:18:43 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-12-27 11:29:50 +0100 |
| commit | 41b235584feeb492d082cdc7bbb735cc49b08180 (patch) | |
| tree | e965e35b2f00240611794707e9e75c18f4f89474 /lua/vis.lua | |
| parent | 40c387aca214f701cd316c63b290ba7f35abbe3a (diff) | |
| download | vis-41b235584feeb492d082cdc7bbb735cc49b08180.tar.gz vis-41b235584feeb492d082cdc7bbb735cc49b08180.tar.xz | |
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.
Diffstat (limited to 'lua/vis.lua')
| -rw-r--r-- | lua/vis.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
