summaryrefslogtreecommitdiff
path: root/server-beta/src/core/diagnostics/unused-local.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/core/diagnostics/unused-local.lua')
-rw-r--r--server-beta/src/core/diagnostics/unused-local.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server-beta/src/core/diagnostics/unused-local.lua b/server-beta/src/core/diagnostics/unused-local.lua
index 9b97ca88..d110a714 100644
--- a/server-beta/src/core/diagnostics/unused-local.lua
+++ b/server-beta/src/core/diagnostics/unused-local.lua
@@ -8,7 +8,7 @@ local function hasGet(loc)
return false
end
for _, ref in ipairs(loc.ref) do
- if ref.type == 'get' then
+ if ref.mode == 'get' then
return true
end
end