summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/unused-function.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-16 10:11:52 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-16 10:11:52 +0800
commit4ab165a5940b3e41ea2932b899406d70fb1b964e (patch)
tree32d4c3ab4f7f8d55850e08e612b7792d20888854 /script/core/diagnostics/unused-function.lua
parent4b995d60acb4d54169de9d3e3baf5c4fab408593 (diff)
downloadlua-language-server-4ab165a5940b3e41ea2932b899406d70fb1b964e.zip
wrong test
Diffstat (limited to 'script/core/diagnostics/unused-function.lua')
-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 1463d081..a68b8dcc 100644
--- a/script/core/diagnostics/unused-function.lua
+++ b/script/core/diagnostics/unused-function.lua
@@ -32,7 +32,7 @@ return function (uri, callback)
and parent.type ~= 'setlocal' then
return
end
- if isToBeClosed(source) then
+ if isToBeClosed(parent) then
return
end
local hasGet