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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
gengjiawen authored and danbev committed Feb 11, 2019
1 parent 0b58545 commit 851cebb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/node_file.cc
Original file line number Diff line number Diff line change
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 851cebb

Please sign in to comment.