diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-14 21:13:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-14 21:13:54 +0800 |
commit | 7df9f807faf27e3faea33842ed599963e00cdb0b (patch) | |
tree | 7fab4bda4680a994c5a46b4f695c5cd957411042 /script/vm/global-manager.lua | |
parent | 9c084cd0bf6b83bb235a60dd2353b775c379ac6e (diff) | |
download | lua-language-server-7df9f807faf27e3faea33842ed599963e00cdb0b.zip |
cleanup
Diffstat (limited to 'script/vm/global-manager.lua')
-rw-r--r-- | script/vm/global-manager.lua | 4 |
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) |