| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4f8620e commit d9cd171
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -35,7 +35,7 @@ namespace node { | |||
| 35 | 35 | ||
| 36 | 36 | // TODO(addaleax): Use real inheritance for the JS object templates to avoid | |
| 37 | 37 | // this unnecessary case switching. | |
| 38 | - #define WITH_GENERIC_UV_STREAM(env, obj, BODY, ELSE) \ | ||
| 38 | + #define WITH_GENERIC_UV_STREAM(env, obj, BODY) \ | ||
| 39 | 39 | do { \ | |
| 40 | 40 | if (env->tcp_constructor_template().IsEmpty() == false && \ | |
| 41 | 41 | env->tcp_constructor_template()->HasInstance(obj)) { \ | |
@@ -49,8 +49,6 @@ namespace node { | |||
| 49 | 49 | env->pipe_constructor_template()->HasInstance(obj)) { \ | |
| 50 | 50 | PipeWrap* const wrap = Unwrap<PipeWrap>(obj); \ | |
| 51 | 51 | BODY \ | |
| 52 | - } else { \ | ||
| 53 | - ELSE \ | ||
| 54 | 52 | } \ | |
| 55 | 53 | } while (0) | |
| 56 | 54 | ||
@@ -62,7 +60,7 @@ inline uv_stream_t* HandleToStream(Environment* env, | |||
| 62 | 60 | if (wrap == nullptr) | |
| 63 | 61 | return nullptr; | |
| 64 | 62 | return reinterpret_cast<uv_stream_t*>(wrap->UVHandle()); | |
| 65 | - }, {}); | ||
| 63 | + }); | ||
| 66 | 64 | ||
| 67 | 65 | return nullptr; | |
| 68 | 66 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments