diff options
-rw-r--r-- | src/node_dir.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_dir.cc b/src/node_dir.cc index 36366502aa..ec53d8216b 100644 --- a/src/node_dir.cc +++ b/src/node_dir.cc @@ -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); |