From bdd6e0cf3738911ebe92b3ed7dcb52d84b7efa98 Mon Sep 17 00:00:00 2001 From: Luc Sinet Date: Mon, 19 Jul 2021 18:12:59 +0200 Subject: Fix reports from luacheck (#1031) --- lua/core/autopairs.lua | 2 +- lua/core/formatter.lua | 2 +- lua/core/linter.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lua/core') diff --git a/lua/core/autopairs.lua b/lua/core/autopairs.lua index b8dad5f3..f0111db6 100644 --- a/lua/core/autopairs.lua +++ b/lua/core/autopairs.lua @@ -1,7 +1,7 @@ -- if not package.loaded['nvim-autopairs'] then -- return -- end -local status_ok, autopairs = pcall(require, "nvim-autopairs") +local status_ok, _ = pcall(require, "nvim-autopairs") if not status_ok then return end diff --git a/lua/core/formatter.lua b/lua/core/formatter.lua index 05de74ab..c8f1baeb 100644 --- a/lua/core/formatter.lua +++ b/lua/core/formatter.lua @@ -48,7 +48,7 @@ end -- end -- end -- end -local status_ok, formatter = pcall(require, "formatter") +local status_ok, _ = pcall(require, "formatter") if not status_ok then return end diff --git a/lua/core/linter.lua b/lua/core/linter.lua index 9c6649a8..676b0cf7 100644 --- a/lua/core/linter.lua +++ b/lua/core/linter.lua @@ -19,7 +19,7 @@ M.setup = function() end end -local status_ok, linter = pcall(require, "lint") +local status_ok, _ = pcall(require, "lint") if not status_ok then return end -- cgit v1.2.3