Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgengjiawen <technicalcute@gmail.com>2019-12-01 10:30:36 +0300
committerAnna Henningsen <anna@addaleax.net>2019-12-04 01:21:14 +0300
commit1d0c3e3188c2e7906eb4ac072d36079c1ba0f334 (patch)
tree6730175d458dea179feae964d4e679680ba409e9 /src/node_dir.cc
parentc9d4949565c9a1e12cc1236cb4947ded88ebac3c (diff)
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>
Diffstat (limited to 'src/node_dir.cc')
-rw-r--r--src/node_dir.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_dir.cc b/src/node_dir.cc
index 36366502aaf..ec53d8216bc 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);