diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-06 05:13:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-06 05:13:41 +0800 |
commit | fa430fa6225ea1c78ffc263bf0e9bb612fc15a03 (patch) | |
tree | 15ec03fc4126c2876b54e227c0d5e51f2b05bc2f /script/vm/node.lua | |
parent | 989ffe2a809998605750d5400a9455e0b8d279c0 (diff) | |
download | lua-language-server-fa430fa6225ea1c78ffc263bf0e9bb612fc15a03.zip |
optmize
Diffstat (limited to 'script/vm/node.lua')
-rw-r--r-- | script/vm/node.lua | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/script/vm/node.lua b/script/vm/node.lua index 514625f1..b55c1ab5 100644 --- a/script/vm/node.lua +++ b/script/vm/node.lua @@ -19,10 +19,6 @@ function m.mergeNode(a, b) if not a then return b end - if a.type == 'union' then - a:merge(b) - return a - end return union(a, b) end @@ -32,11 +28,7 @@ function m.setNode(source, node) end local me = m.nodeCache[source] if not me then - if node.type == 'union' then - m.nodeCache[source] = node:copy() - else - m.nodeCache[source] = node - end + m.nodeCache[source] = node return end if me == node then |