From d687d629dfd7dd9d4a199ef5a54278af01adb89e Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sat, 23 Aug 2025 03:26:37 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/js/node/fs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/node/fs.ts b/src/js/node/fs.ts index c435d8dab7..d8fa1a00d0 100644 --- a/src/js/node/fs.ts +++ b/src/js/node/fs.ts @@ -326,7 +326,7 @@ var access = function access(path, mode, callback) { const remove = async () => { return new Promise((resolve, reject) => { - rm(fullPath, { maxRetries: 0, recursive: true, force: true, retryDelay: 0 }, (err) => { + rm(fullPath, { maxRetries: 0, recursive: true, force: true, retryDelay: 0 }, err => { if (err) reject(err); else resolve(undefined); }); @@ -593,7 +593,7 @@ var access = function access(path, mode, callback) { const pathModule = require("node:path"); // Stash the full path in case of process.chdir() const fullPath = pathModule.resolve(process.cwd(), path); - + const remove = () => { rmSync(fullPath, { maxRetries: 0, recursive: true, force: true, retryDelay: 100 }); };