summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-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