Skip to content

Commit

Permalink
src: remove redundant cast in method AfterStringPath
Browse files Browse the repository at this point in the history
PR-URL: #26218
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
gengjiawen authored and addaleax committed Mar 1, 2019
1 parent 6d014a6 commit 6f9ab5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 6f9ab5e

Please sign in to comment.