We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b54da8a commit 6545a6dCopy full SHA for 6545a6d
src/pipe_wrap.cc
@@ -242,20 +242,14 @@ Handle<Value> PipeWrap::Connect(const Arguments& args) {
242
243
ConnectWrap* req_wrap = new ConnectWrap();
244
245
- int r = uv_pipe_connect(&req_wrap->req_,
246
- &wrap->handle_,
247
- *name,
248
- AfterConnect);
+ uv_pipe_connect(&req_wrap->req_,
+ &wrap->handle_,
+ *name,
+ AfterConnect);
249
250
req_wrap->Dispatched();
251
252
- if (r) {
253
- SetErrno(uv_last_error(uv_default_loop()));
254
- delete req_wrap;
255
- return scope.Close(v8::Null());
256
- } else {
257
- return scope.Close(req_wrap->object_);
258
- }
+ return scope.Close(req_wrap->object_);
259
}
260
261
0 commit comments