From 99a374b7655042fdbf82a61ab9923f8997be0c03 Mon Sep 17 00:00:00 2001 From: Peter Lithammer Date: Mon, 28 Mar 2022 14:07:55 +0200 Subject: ci: fix new luacheck v0.26.0 errors See https://github.com/lunarmodules/luacheck/releases/tag/v0.26.0 lua/lspconfig/util.lua:225:40: used variable _make_config lua/lspconfig/configs.lua:207:63: used variable _root_dir lua/lspconfig/configs.lua:260:19: 'not (x == y)' can be replaced by 'x ~= y' (if neither side is a table or NaN) --- lua/lspconfig/util.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/lspconfig/util.lua') diff --git a/lua/lspconfig/util.lua b/lua/lspconfig/util.lua index 25ca1689..3febafc0 100644 --- a/lua/lspconfig/util.lua +++ b/lua/lspconfig/util.lua @@ -222,7 +222,7 @@ end)() -- Returns a function(root_dir), which, when called with a root_dir it hasn't -- seen before, will call make_config(root_dir) and start a new client. -function M.server_per_root_dir_manager(_make_config) +function M.server_per_root_dir_manager(make_config) local clients = {} local single_file_clients = {} local manager = {} @@ -242,7 +242,7 @@ function M.server_per_root_dir_manager(_make_config) -- Check if we have a client already or start and store it. if not client_id then - local new_config = _make_config(root_dir) + local new_config = make_config(root_dir) -- do nothing if the client is not enabled if new_config.enabled == false then return -- cgit v1.2.3-70-g09d2