Skip to content

Commit

Permalink
src: remove redundant cast in node_file.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
gengjiawen committed Feb 7, 2019
1 parent 4e07d21 commit f1bbaa9
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 @@ -583,8 +583,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 @@ -625,8 +624,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 f1bbaa9

Please sign in to comment.