Skip to content

Commit

Permalink
src: remove redundant cast in node_file.cc
Browse files Browse the repository at this point in the history
PR-URL: #25977
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
gengjiawen authored and targos committed Feb 11, 2019
1 parent 90c9f1d commit d7ae105
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/node_file.cc
Expand Up @@ -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 =
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit d7ae105

Please sign in to comment.