summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-11 21:04:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-11 21:04:00 +0800
commita88c6796f2ab2ac3b3ff2419ab1cfdcb5518013f (patch)
tree3b2c22638c49f898e4737e38087f49add89eb37b /script/core
parent96e26a0ffebd3806d509453827c722c630b59f2a (diff)
downloadlua-language-server-a88c6796f2ab2ac3b3ff2419ab1cfdcb5518013f.zip
dont show `nil.XXX`
Diffstat (limited to 'script/core')
-rw-r--r--script/core/infer.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua
index 5bf8a5f2..8ac585f4 100644
--- a/script/core/infer.lua
+++ b/script/core/infer.lua
@@ -672,7 +672,8 @@ function m.getClass(source)
end
end
local view = m.viewInfers(infers)
- if view == 'any' then
+ if view == 'any'
+ or view == 'nil' then
return nil
end
return view