Skip to content

Commit d9cd171

Browse files
maclover7targos
authored andcommitted
src: remove unnecessary else
Argument is not used by the only caller. PR-URL: #21874 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 4f8620e commit d9cd171

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/node_wrap.h

+2-4
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)