summaryrefslogtreecommitdiff
path: root/script/core/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-09 14:13:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-09 14:13:23 +0800
commit670dc93567d88e8d2ef288dc3c266d591c90beb5 (patch)
treec36a934905df5be0bf2b4a778dd583362cf7b68f /script/core/diagnostics
parentb85fbef97096a81ab206ec2def71ac22fb4c87c9 (diff)
downloadlua-language-server-670dc93567d88e8d2ef288dc3c266d591c90beb5.zip
cleanup
Diffstat (limited to 'script/core/diagnostics')
-rw-r--r--script/core/diagnostics/unused-function.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/unused-function.lua b/script/core/diagnostics/unused-function.lua
index cf5d47b5..523bca6e 100644
--- a/script/core/diagnostics/unused-function.lua
+++ b/script/core/diagnostics/unused-function.lua
@@ -44,7 +44,7 @@ return function (uri, callback)
local hasGet
local refs = vm.getRefs(source)
for _, src in ipairs(refs) do
- if vm.isGet(src) then
+ if guide.isGet(src) then
local func = guide.getParentFunction(src)
if not checkFunction(func) then
hasGet = true