From 08b9dd387a9b912c68749018b7dfe3c1df7094d5 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 21:06:53 +0800 Subject: cleanup --- script/workspace/require-path.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script/workspace/require-path.lua') diff --git a/script/workspace/require-path.lua b/script/workspace/require-path.lua index aec298a6..fbe559ad 100644 --- a/script/workspace/require-path.lua +++ b/script/workspace/require-path.lua @@ -51,7 +51,8 @@ function m.getVisiblePath(suri, path) and not scp:isLinkedUri(uri) then return {} end - local libraryPath = furi.decode(files.getLibraryUri(suri, uri)) + local libUri = files.getLibraryUri(suri, uri) + local libraryPath = libUri and furi.decode(libUri) local cache = scp:get('visiblePath') or scp:set('visiblePath', {}) local result = cache[path] if not result then -- cgit v1.2.3