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 d9cd171

Browse filesBrowse files
maclover7targos
authored andcommitted
src: remove unnecessary else
Argument is not used by the only caller. PR-URL: #21874 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 4f8620e commit d9cd171
Copy full SHA for d9cd171

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-4
lines changed
Open diff view settings
Collapse file

‎src/node_wrap.h‎

Copy file name to clipboardExpand all lines: src/node_wrap.h
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace node {
3535

3636
// TODO(addaleax): Use real inheritance for the JS object templates to avoid
3737
// this unnecessary case switching.
38-
#define WITH_GENERIC_UV_STREAM(env, obj, BODY, ELSE) \
38+
#define WITH_GENERIC_UV_STREAM(env, obj, BODY) \
3939
do { \
4040
if (env->tcp_constructor_template().IsEmpty() == false && \
4141
env->tcp_constructor_template()->HasInstance(obj)) { \
@@ -49,8 +49,6 @@ namespace node {
4949
env->pipe_constructor_template()->HasInstance(obj)) { \
5050
PipeWrap* const wrap = Unwrap<PipeWrap>(obj); \
5151
BODY \
52-
} else { \
53-
ELSE \
5452
} \
5553
} while (0)
5654

@@ -62,7 +60,7 @@ inline uv_stream_t* HandleToStream(Environment* env,
6260
if (wrap == nullptr)
6361
return nullptr;
6462
return reinterpret_cast<uv_stream_t*>(wrap->UVHandle());
65-
}, {});
63+
});
6664

6765
return nullptr;
6866
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.