From 1d0c3e3188c2e7906eb4ac072d36079c1ba0f334 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Sun, 1 Dec 2019 15:30:36 +0800 Subject: src: remove redundant cast in node_dir.cc PR-URL: https://github.com/nodejs/node/pull/30747 Reviewed-By: David Carlier Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- src/node_dir.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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& args) { const enum encoding encoding = ParseEncoding(isolate, args[1], UTF8); - FSReqBase* req_wrap_async = static_cast(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); -- cgit v1.2.3