From 2dfed8a4aabd66c98777d37245ef5482b5ffdd48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 3 Jul 2022 15:34:36 +0800 Subject: fix --- script/core/diagnostics/missing-return.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/core') diff --git a/script/core/diagnostics/missing-return.lua b/script/core/diagnostics/missing-return.lua index 435e8a96..e3539ac0 100644 --- a/script/core/diagnostics/missing-return.lua +++ b/script/core/diagnostics/missing-return.lua @@ -63,7 +63,7 @@ return function (uri, callback) return end await.delay() - if vm.countReturnsOfFunction(source) == 0 then + if vm.countReturnsOfFunction(source, true) == 0 then return end if hasReturn(source) then -- cgit v1.2.3