diff --git a/src/node_file.cc b/src/node_file.cc index 5513be3d7c77c1..606900f2273866 100644 --- a/src/node_file.cc +++ b/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(req->path))); + UVException(r, nullptr, req_wrap->syscall(), req->path)); } MaybeLocal 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(req->path))); + UVException(r, nullptr, req_wrap->syscall(), req->path)); } MaybeLocal filename =