From d7ae1054ef69030b5d4a3729afbac9f953b24f82 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Thu, 7 Feb 2019 17:04:51 +0800 Subject: [PATCH] src: remove redundant cast in node_file.cc PR-URL: https://github.com/nodejs/node/pull/25977 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig --- src/node_file.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 =