From ae024958da9a14ed837495f79972a85458ee3f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 28 Jun 2022 03:08:24 +0800 Subject: fix diags --- script/parser/guide.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'script/parser/guide.lua') diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 439f5889..1ba28d4d 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -1089,13 +1089,13 @@ end --- 返回的2个 `list` 分别为基准block到达 a 与 b 的路径。 ---@param a table ---@param b table ----@return string|boolean mode +---@return string|false mode ---@return table pathA? ---@return table pathB? function m.getPath(a, b, sameFunction) --- 首先测试双方在同一个函数内 if sameFunction and m.getParentFunction(a) ~= m.getParentFunction(b) then - return false + return false, nil, nil end local mode local objA @@ -1139,7 +1139,7 @@ function m.getPath(a, b, sameFunction) end end if not start then - return nil + return false, nil, nil end -- pathA: { 1, 2, 3} -- pathB: {5, 6, 2, 3} -- cgit v1.2.3