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>
This commit is contained in:
gengjiawen 2019-02-07 17:04:51 +08:00 committed by Daniel Bevenius
parent 0b585457ee
commit 851cebbff6

View File

@ -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 =