diff options
Diffstat (limited to 'server-beta/src/core/diagnostics/undefined-global.lua')
-rw-r--r-- | server-beta/src/core/diagnostics/undefined-global.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server-beta/src/core/diagnostics/undefined-global.lua b/server-beta/src/core/diagnostics/undefined-global.lua index 586a9955..b39803b8 100644 --- a/server-beta/src/core/diagnostics/undefined-global.lua +++ b/server-beta/src/core/diagnostics/undefined-global.lua @@ -18,10 +18,9 @@ return function (uri, callback) if hasSet[info.source] ~= nil then return end - local mark = false - searcher.eachRef(info.source, function (info) + local mark = searcher.eachRef(info.source, function (info) if info.mode == 'set' then - mark = true + return true end end) searcher.eachRef(info.source, function (info) |