diff options
Diffstat (limited to 'server-beta/src/core/diagnostics/undefined-env-child.lua')
-rw-r--r-- | server-beta/src/core/diagnostics/undefined-env-child.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server-beta/src/core/diagnostics/undefined-env-child.lua b/server-beta/src/core/diagnostics/undefined-env-child.lua index 5815f9c3..4169a413 100644 --- a/server-beta/src/core/diagnostics/undefined-env-child.lua +++ b/server-beta/src/core/diagnostics/undefined-env-child.lua @@ -14,10 +14,9 @@ return function (uri, callback) if source.node.tag == '_ENV' then return end - local setInENV - searcher.eachRef(source, function (info) + local setInENV = searcher.eachRef(source, function (info) if info.mode == 'set' then - setInENV = true + return true end end) if setInENV then |