From 6f9ab5e15b3fe44495aaedce21c3660f715863ec Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Thu, 21 Feb 2019 00:30:10 +0800 Subject: [PATCH] src: remove redundant cast in method AfterStringPath PR-URL: https://github.com/nodejs/node/pull/26218 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- src/node_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_file.cc b/src/node_file.cc index 96e0ba7e04164f..dd658e2ecf0829 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -555,7 +555,7 @@ void AfterStringPath(uv_fs_t* req) { if (after.Proceed()) { link = StringBytes::Encode(req_wrap->env()->isolate(), - static_cast(req->path), + req->path, req_wrap->encoding(), &error); if (link.IsEmpty())