diff options
author | gengjiawen <technicalcute@gmail.com> | 2019-02-20 19:30:10 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-03-01 13:19:47 +0300 |
commit | 10de8d9ec81a12b352709b4dd5320ccd0b7c1cdd (patch) | |
tree | 0bd70ca4b4ad89537c6d4a73dbbfebde975131bb /src/node_file.cc | |
parent | 43cb36b10bb5d9f80964018e75ece19b6d9bbac4 (diff) |
src: remove redundant cast in method AfterStringPath
PR-URL: https://github.com/nodejs/node/pull/26218
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_file.cc')
-rw-r--r-- | src/node_file.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_file.cc b/src/node_file.cc index 96e0ba7e041..dd658e2ecf0 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<const char*>(req->path), + req->path, req_wrap->encoding(), &error); if (link.IsEmpty()) |