summaryrefslogtreecommitdiff
path: root/script/vm/global-manager.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-14 21:13:54 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-14 21:13:54 +0800
commit7df9f807faf27e3faea33842ed599963e00cdb0b (patch)
tree7fab4bda4680a994c5a46b4f695c5cd957411042 /script/vm/global-manager.lua
parent9c084cd0bf6b83bb235a60dd2353b775c379ac6e (diff)
downloadlua-language-server-7df9f807faf27e3faea33842ed599963e00cdb0b.zip
cleanup
Diffstat (limited to 'script/vm/global-manager.lua')
-rw-r--r--script/vm/global-manager.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/script/vm/global-manager.lua b/script/vm/global-manager.lua
index 3f48197f..9752621e 100644
--- a/script/vm/global-manager.lua
+++ b/script/vm/global-manager.lua
@@ -191,9 +191,7 @@ local compilerGlobalSwitch = util.switch()
local name = source[1]
local type = m.declareGlobal('type', name, uri)
type:addGet(uri, source)
- if source.signs then
- source._globalNode = source
- else
+ if not source.signs then
source._globalNode = type
end
end)