Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9b608e3

Browse filesBrowse files
gengjiawentargos
authored andcommitted
src: remove redundant cast in node_dir.cc
PR-URL: #30747 Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 08ac9b6 commit 9b608e3
Copy full SHA for 9b608e3

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎src/node_dir.cc‎

Copy file name to clipboardExpand all lines: src/node_dir.cc
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.