diff --git a/lib/fs.js b/lib/fs.js index 4380c4d6dd2018..abd12e131904c8 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -888,7 +888,7 @@ function rmdirSync(path, options) { return rimrafSync(pathModule.toNamespacedPath(path), options); } - options = validateRmdirOptions(options); + validateRmdirOptions(options); const ctx = { path }; binding.rmdir(pathModule.toNamespacedPath(path), undefined, ctx); return handleErrorFromBinding(ctx);