From a81c282c490c9a24310cf5e5b14b9ea867a5f5dd Mon Sep 17 00:00:00 2001 From: Percs <83934299+Percslol@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:15:16 -0500 Subject: [PATCH] add early return --- apps/fsapp.app/operations.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/fsapp.app/operations.js b/apps/fsapp.app/operations.js index 2e1a1eaa..c1cf6702 100644 --- a/apps/fsapp.app/operations.js +++ b/apps/fsapp.app/operations.js @@ -66,6 +66,7 @@ async function fileAction(selected) { fileSelected.getAttribute("data-path").endsWith(".lib.zip") ) { anura.files.open(fileSelected.getAttribute("data-path")); + return; } if (fileSelected.getAttribute("data-path").endsWith(".zip")) { @@ -100,10 +101,6 @@ async function fileAction(selected) { } } const sh = new fs.Shell(); - // for (const folder of folders) { - // await sh.promises.mkdirp(root + folder); - // } - for (const file of files) { const container = file[0].split("/").slice(0, -1).join("/") + "/";