File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments