Skip to content

Commit 9b608e3

Browse files
gengjiawentargos
authored andcommitted
src: remove redundant cast in node_dir.cc
PR-URL: #30747 Reviewed-By: David Carlier <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 08ac9b6 commit 9b608e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_dir.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static void OpenDir(const FunctionCallbackInfo<Value>& args) {
320320

321321
const enum encoding encoding = ParseEncoding(isolate, args[1], UTF8);
322322

323-
FSReqBase* req_wrap_async = static_cast<FSReqBase*>(GetReqWrap(env, args[2]));
323+
FSReqBase* req_wrap_async = GetReqWrap(env, args[2]);
324324
if (req_wrap_async != nullptr) { // openDir(path, encoding, req)
325325
AsyncCall(env, req_wrap_async, args, "opendir", encoding, AfterOpenDir,
326326
uv_fs_opendir, *path);

0 commit comments

Comments
 (0)