Browse Source

fix: remove unnecessary `item_path` definition in `delete` fs api

jelveh 5 tháng trước cách đây
mục cha
commit
c792f4a345
1 tập tin đã thay đổi với 0 bổ sung1 xóa
  1. 0 1
      src/backend/src/routers/filesystem_api/delete.js

+ 0 - 1
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,