From c792f4a345b307d024f73ff2817ae473b2620913 Mon Sep 17 00:00:00 2001 From: jelveh Date: Thu, 12 Dec 2024 18:07:50 -0800 Subject: [PATCH] fix: remove unnecessary `item_path` definition in `delete` fs api --- src/backend/src/routers/filesystem_api/delete.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/src/routers/filesystem_api/delete.js b/src/backend/src/routers/filesystem_api/delete.js index 97780fab..b77cbae7 100644 --- a/src/backend/src/routers/filesystem_api/delete.js +++ b/src/backend/src/routers/filesystem_api/delete.js @@ -51,7 +51,6 @@ module.exports = eggspress('/delete', { // try to delete each path in the array one by one (if glob, resolve first) // TODO: remove this pseudo-batch for ( const item_path of paths ) { - let item_path = item_path; const target = await (new FSNodeParam('path')).consolidate({ req: { fs: req.fs, user }, getParam: () => item_path,