diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-02-07 12:04:51 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-02-11 09:20:16 +0300 |
commit | 851cebbff66699d350477882ddd787b0bd9c95ec (patch) | |
tree | 64bc4ab5987a68913b566dcbb521f21d0098d4ee /src/node_file.cc | |
parent | 0b585457eef91bd905f13c5d88b4c6023ddf07fc (diff) |
src: remove redundant cast in node_file.cc
PR-URL: https://github.com/nodejs/node/pull/25977
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_file.cc')
-rw-r--r-- | src/node_file.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/node_file.cc b/src/node_file.cc index 5513be3d7c7..606900f2273 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -608,8 +608,7 @@ void AfterScanDir(uv_fs_t* req) { break; if (r != 0) { return req_wrap->Reject( - UVException(r, nullptr, req_wrap->syscall(), - static_cast<const char*>(req->path))); + UVException(r, nullptr, req_wrap->syscall(), req->path)); } MaybeLocal<Value> filename = @@ -650,8 +649,7 @@ void AfterScanDirWithTypes(uv_fs_t* req) { break; if (r != 0) { return req_wrap->Reject( - UVException(r, nullptr, req_wrap->syscall(), - static_cast<const char*>(req->path))); + UVException(r, nullptr, req_wrap->syscall(), req->path)); } MaybeLocal<Value> filename = |