mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
committed by
Daniel Bevenius
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 =
|
||||
|
||||
Reference in New Issue
Block a user