diff --git a/lib/fs.js b/lib/fs.js index 8e26339e215c89..6186931971228c 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -884,7 +884,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);