diff options
Diffstat (limited to 'server-beta/src/searcher/isGlobal.lua')
-rw-r--r-- | server-beta/src/searcher/isGlobal.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/server-beta/src/searcher/isGlobal.lua b/server-beta/src/searcher/isGlobal.lua index d59a6876..72a9448b 100644 --- a/server-beta/src/searcher/isGlobal.lua +++ b/server-beta/src/searcher/isGlobal.lua @@ -5,13 +5,12 @@ local function isGlobal(source) if not node then return false end - local global - searcher.eachRef(node, function (info) + local global = searcher.eachRef(node, function (info) if info.source.tag == '_ENV' then - global = true + return true end end) - return global + return global or false end function searcher.isGlobal(source) |