Skip to content

Commit d7ae105

Browse files
gengjiawentargos
authored andcommitted
src: remove redundant cast in node_file.cc
PR-URL: #25977 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 90c9f1d commit d7ae105

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/node_file.cc

+2-4
Original file line numberDiff line numberDiff line change
@@ -608,8 +608,7 @@ void AfterScanDir(uv_fs_t* req) {
608608
break;
609609
if (r != 0) {
610610
return req_wrap->Reject(
611-
UVException(r, nullptr, req_wrap->syscall(),
612-
static_cast<const char*>(req->path)));
611+
UVException(r, nullptr, req_wrap->syscall(), req->path));
613612
}
614613

615614
MaybeLocal<Value> filename =
@@ -650,8 +649,7 @@ void AfterScanDirWithTypes(uv_fs_t* req) {
650649
break;
651650
if (r != 0) {
652651
return req_wrap->Reject(
653-
UVException(r, nullptr, req_wrap->syscall(),
654-
static_cast<const char*>(req->path)));
652+
UVException(r, nullptr, req_wrap->syscall(), req->path));
655653
}
656654

657655
MaybeLocal<Value> filename =

0 commit comments

Comments
 (0)