mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
src: remove redundant cast in node_dir.cc
PR-URL: https://github.com/nodejs/node/pull/30747 Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
c9d4949565
commit
1d0c3e3188
@ -320,7 +320,7 @@ static void OpenDir(const FunctionCallbackInfo<Value>& args) {
|
||||
|
||||
const enum encoding encoding = ParseEncoding(isolate, args[1], UTF8);
|
||||
|
||||
FSReqBase* req_wrap_async = static_cast<FSReqBase*>(GetReqWrap(env, args[2]));
|
||||
FSReqBase* req_wrap_async = GetReqWrap(env, args[2]);
|
||||
if (req_wrap_async != nullptr) { // openDir(path, encoding, req)
|
||||
AsyncCall(env, req_wrap_async, args, "opendir", encoding, AfterOpenDir,
|
||||
uv_fs_opendir, *path);
|
||||
|
Loading…
Reference in New Issue
Block a user