From 3dfc53f79e4677398be4757c42191450977b34e1 Mon Sep 17 00:00:00 2001 From: bcoe Date: Thu, 8 Oct 2020 17:51:36 -0700 Subject: [PATCH] chore: code review --- lib/internal/fs/rimraf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/fs/rimraf.js b/lib/internal/fs/rimraf.js index 6988425ecbaeb5..b8eade61cf9bea 100644 --- a/lib/internal/fs/rimraf.js +++ b/lib/internal/fs/rimraf.js @@ -249,7 +249,7 @@ function _rmdirSync(path, options, originalErr) { for (let i = 1; i <= tries; i++) { try { - return rmdirSync(path, { ...options, recursive: false }); + return rmdirSync(path); } catch (err) { // Only sleep if this is not the last try, and the delay is greater // than zero, and an error was encountered that warrants a retry.