diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/core/diagnostics.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index a4f6bbcc..d88c4fc6 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -14,13 +14,15 @@ mt.__index = mt function mt:searchUnusedLocals(callback) local results = self.results for _, var in ipairs(results.locals) do - if var.key == 'self' - or var.key == '_' + if var.key == '_' or var.key == '_ENV' or var.key == '' then goto NEXT_VAR end + if var.hide then + goto NEXT_VAR + end for _, info in ipairs(var) do if info.type == 'get' then goto NEXT_VAR |