Skip to content

Commit 8c2ca28

Browse files
committed
fixup! fs: add synchronous retries to rimraf
1 parent b0f690b commit 8c2ca28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/fs/rimraf.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ function _rmdirSync(path, options, originalErr) {
213213
try {
214214
return rmdirSync(path, options);
215215
} catch {
216-
sleep(i * options.retryDelay);
216+
if (options.retryDelay > 0)
217+
sleep(i * options.retryDelay);
217218
}
218219
}
219220
}

0 commit comments

Comments
 (0)