summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-16 17:31:53 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-16 17:31:53 +0800
commit94b4c9f49734f38e9d6d4bf155869dc34d693916 (patch)
tree28e7f6f189eed44f5eeb1f9db9c54768aa1b01c6
parent45408dd0e60d16b84a384080bb8a39f871640006 (diff)
downloadlua-language-server-94b4c9f49734f38e9d6d4bf155869dc34d693916.zip
pass tests
-rw-r--r--script/parser/guide.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 4ce41963..e2efd22f 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -3290,9 +3290,6 @@ local function mathCheck(status, a, b)
or m.getInferLiteral(status, a, 'number')
v1 = tonumber(v1)
v2 = tonumber(v2)
- if not v1 or not v2 then
- return nil
- end
local int = m.hasType(status, a, 'integer')
and m.hasType(status, b, 'integer')
and not m.hasType(status, a, 'number')