From d97702c96c818e10cad9d82e0ab779c5e16090d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 12 Aug 2020 15:00:44 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/vm/getLinks.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script-beta/vm/getLinks.lua b/script-beta/vm/getLinks.lua index 6a19fbc8..0d95fa89 100644 --- a/script-beta/vm/getLinks.lua +++ b/script-beta/vm/getLinks.lua @@ -15,10 +15,10 @@ local function getFileLinks(uri) return end local args = call.args - if type(args[1]) ~= 'string' then + if not args[1] or args[1].type ~= 'string' then return end - local uris = ws.findUrisByRequirePath(args[1], true) + local uris = ws.findUrisByRequirePath(args[1][1], true) for _, u in ipairs(uris) do u = files.asKey(u) if not links[u] then -- cgit v1.2.3