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:
parent
0b585457ee
commit
851cebbff6
@ -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 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user