summaryrefslogtreecommitdiff
path: root/server-beta/src/searcher/getGlobals.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-11 21:24:53 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-11 21:24:53 +0800
commit4caf0cac1caf6e8567016424dfa103af27f097b7 (patch)
treea990c3a60403ea276c1bfa549d26c72141e614cc /server-beta/src/searcher/getGlobals.lua
parent025b80013795760483e75fc2487e439a0f62cfeb (diff)
downloadlua-language-server-4caf0cac1caf6e8567016424dfa103af27f097b7.zip
跨越 link
Diffstat (limited to 'server-beta/src/searcher/getGlobals.lua')
-rw-r--r--server-beta/src/searcher/getGlobals.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/server-beta/src/searcher/getGlobals.lua b/server-beta/src/searcher/getGlobals.lua
index c5737881..ea6a6f6c 100644
--- a/server-beta/src/searcher/getGlobals.lua
+++ b/server-beta/src/searcher/getGlobals.lua
@@ -38,8 +38,8 @@ function searcher.getGlobals(source)
if not unlock then
return nil
end
- cache = getGlobals(source)
- searcher.cache.getGlobals[source] = cache or false
+ cache = getGlobals(source) or false
+ searcher.cache.getGlobals[source] = cache
unlock()
return cache
end