diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-25 19:43:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-25 19:43:01 +0800 |
commit | ce158c82b0de9f7dd700ed4eabea6e9e26f491da (patch) | |
tree | 13ad06ca3320ab3cd2ae89b2ed3d407bed457c75 /script/core/diagnostics/redundant-parameter.lua | |
parent | 123d904a16f49764f36cabef97c2be0f2acca34c (diff) | |
download | lua-language-server-ce158c82b0de9f7dd700ed4eabea6e9e26f491da.zip |
cleanup
Diffstat (limited to 'script/core/diagnostics/redundant-parameter.lua')
-rw-r--r-- | script/core/diagnostics/redundant-parameter.lua | 2 |
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 |