summaryrefslogtreecommitdiff
path: root/script/vm/function.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-22 17:07:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-22 17:07:02 +0800
commita212b62603f6087bc5a34c4aea45f7cdb0643a8b (patch)
tree19a1490ed0569bd7a06bc57efc1f5ac138060d34 /script/vm/function.lua
parent72effeb8f9d9f3c04d4f5aa4f228dcd1d84f2815 (diff)
downloadlua-language-server-a212b62603f6087bc5a34c4aea45f7cdb0643a8b.zip
update
Diffstat (limited to 'script/vm/function.lua')
-rw-r--r--script/vm/function.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/function.lua b/script/vm/function.lua
index 45f8c0df..2a169bd6 100644
--- a/script/vm/function.lua
+++ b/script/vm/function.lua
@@ -117,7 +117,7 @@ function vm.countReturnsOfFunction(func)
max = dmax
end
end
- return min, max
+ return min or 0, max or math.huge
end
if func.type == 'doc.type.function' then
return vm.countList(func.returns)