summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgengjiawen <technicalcute@gmail.com>2019-12-01 15:30:36 +0800
committerAnna Henningsen <anna@addaleax.net>2019-12-03 23:21:14 +0100
commit1d0c3e3188c2e7906eb4ac072d36079c1ba0f334 (patch)
tree6730175d458dea179feae964d4e679680ba409e9 /src
parentc9d4949565c9a1e12cc1236cb4947ded88ebac3c (diff)
downloadandroid-node-v8-1d0c3e3188c2e7906eb4ac072d36079c1ba0f334.tar.gz
android-node-v8-1d0c3e3188c2e7906eb4ac072d36079c1ba0f334.tar.bz2
android-node-v8-1d0c3e3188c2e7906eb4ac072d36079c1ba0f334.zip
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')
-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 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);