From f1bbaa922d15d34b00f319bb8cbf5e24d491f93f Mon Sep 17 00:00:00 2001
From: gengjiawen <technicalcute@gmail.com>
Date: Thu, 7 Feb 2019 17:04:51 +0800
Subject: [PATCH] src: remove redundant cast in node_file.cc

---
 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 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<const char*>(req->path)));
+          UVException(r, nullptr, req_wrap->syscall(), req->path));
     }
 
     MaybeLocal<Value> 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<const char*>(req->path)));
+          UVException(r, nullptr, req_wrap->syscall(), req->path));
     }
 
     MaybeLocal<Value> filename =