summaryrefslogtreecommitdiff
path: root/script-beta/core/diagnostics/redundant-parameter.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-29 20:08:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-29 20:08:00 +0800
commit0ad52ca53a9e9d24ee9a3451e24ce68f8bee0ff9 (patch)
treeb80ad14b67a19f7a27a7332ec9d1b23d4e8aea64 /script-beta/core/diagnostics/redundant-parameter.lua
parent7981076619717ec1cd5c811762f4c60a445f3c8d (diff)
downloadlua-language-server-0ad52ca53a9e9d24ee9a3451e24ce68f8bee0ff9.zip
整理代码
Diffstat (limited to 'script-beta/core/diagnostics/redundant-parameter.lua')
-rw-r--r--script-beta/core/diagnostics/redundant-parameter.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/core/diagnostics/redundant-parameter.lua b/script-beta/core/diagnostics/redundant-parameter.lua
index a03a408f..074e7f7c 100644
--- a/script-beta/core/diagnostics/redundant-parameter.lua
+++ b/script-beta/core/diagnostics/redundant-parameter.lua
@@ -6,7 +6,7 @@ local define = require 'proto.define'
local await = require 'await'
local function countLibraryArgs(source)
- local lib = vm.getLibrary(source, 'simple')
+ local lib = vm.getLibrary(source)
if not lib then
return nil
end
@@ -63,7 +63,7 @@ return function (uri, callback)
local func = source.node
local funcArgs
- local defs = vm.getDefs(func, 'simple')
+ local defs = vm.getDefs(func)
for _, def in ipairs(defs) do
if def.type == 'function' then
local args = countFuncArgs(def)