From 7f25fe8b67eeb05a44b107378a2f3e59e4d8f2f9 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 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);