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