Skip to content
Permalink
Browse files

src: remove redundant cast in node_file.cc

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 7, 2019
1 parent 90c9f1d commit d7ae1054ef69030b5d4a3729afbac9f953b24f82
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/node_file.cc
@@ -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 =

0 comments on commit d7ae105

Please sign in to comment.
You can’t perform that action at this time.