From 5f0c8142b781666a85e4d4c2caaa3aefb4fd65ff Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 14 Oct 2020 05:43:41 -0700 Subject: [PATCH] fs: remove unused assignment PR-URL: https://github.com/nodejs/node/pull/35642 Reviewed-By: Colin Ihrig Reviewed-By: Joyee Cheung Reviewed-By: James M Snell Reviewed-By: Daijiro Wachi --- lib/fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);