fs: remove unused assignment
PR-URL: https://github.com/nodejs/node/pull/35642 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
This commit is contained in:
parent
2c2c87e291
commit
7f25fe8b67
@ -888,7 +888,7 @@ function rmdirSync(path, options) {
|
|||||||
return rimrafSync(pathModule.toNamespacedPath(path), options);
|
return rimrafSync(pathModule.toNamespacedPath(path), options);
|
||||||
}
|
}
|
||||||
|
|
||||||
options = validateRmdirOptions(options);
|
validateRmdirOptions(options);
|
||||||
const ctx = { path };
|
const ctx = { path };
|
||||||
binding.rmdir(pathModule.toNamespacedPath(path), undefined, ctx);
|
binding.rmdir(pathModule.toNamespacedPath(path), undefined, ctx);
|
||||||
return handleErrorFromBinding(ctx);
|
return handleErrorFromBinding(ctx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user