summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/redundant-parameter.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-25 19:43:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-25 19:43:01 +0800
commitce158c82b0de9f7dd700ed4eabea6e9e26f491da (patch)
tree13ad06ca3320ab3cd2ae89b2ed3d407bed457c75 /script/core/diagnostics/redundant-parameter.lua
parent123d904a16f49764f36cabef97c2be0f2acca34c (diff)
downloadlua-language-server-ce158c82b0de9f7dd700ed4eabea6e9e26f491da.zip
cleanup
Diffstat (limited to 'script/core/diagnostics/redundant-parameter.lua')
-rw-r--r--script/core/diagnostics/redundant-parameter.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/redundant-parameter.lua b/script/core/diagnostics/redundant-parameter.lua
index b465dceb..eca7fc91 100644
--- a/script/core/diagnostics/redundant-parameter.lua
+++ b/script/core/diagnostics/redundant-parameter.lua
@@ -84,7 +84,7 @@ return function (uri, callback)
local funcArgs = cache[func]
if funcArgs == nil then
funcArgs = getFuncArgs(func) or false
- local refs = vm.getRefs(func, 0)
+ local refs = vm.getRefs(func)
for _, ref in ipairs(refs) do
cache[ref] = funcArgs
end