mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
src: remove unnecessary req_wrap_obj
The req_wrap_obj is only used in one place which is setting up the arguments for the MakeCallback call. Removing it to simplify the code somewhat. PR-URL: https://github.com/nodejs/node/pull/10942 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
This commit is contained in:
1 parent
0c0334f7a4
commit
5a976decf7
1 file changed
+1
-2
@@ -99,11 +99,10 @@ void ConnectionWrap<WrapType, UVType>::AfterConnect(uv_connect_t* req,
|
||||
writable = uv_is_writable(req->handle) != 0;
|
||||
}
|
||||
|
||||
Local<Object> req_wrap_obj = req_wrap->object();
|
||||
Local<Value> argv[5] = {
|
||||
Integer::New(env->isolate(), status),
|
||||
wrap->object(),
|
||||
req_wrap_obj,
|
||||
req_wrap->object(),
|
||||
Boolean::New(env->isolate(), readable),
|
||||
Boolean::New(env->isolate(), writable)
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user