src: use bool instead of integer literal in connection_wrap.cc
Signed-off-by: gengjiawen <technicalcute@gmail.com> PR-URL: https://github.com/nodejs/node/pull/25923 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
This commit is contained in:
parent
abba1020f4
commit
4e07d210e1
@ -94,7 +94,7 @@ void ConnectionWrap<WrapType, UVType>::AfterConnect(uv_connect_t* req,
|
|||||||
bool readable, writable;
|
bool readable, writable;
|
||||||
|
|
||||||
if (status) {
|
if (status) {
|
||||||
readable = writable = 0;
|
readable = writable = false;
|
||||||
} else {
|
} else {
|
||||||
readable = uv_is_readable(req->handle) != 0;
|
readable = uv_is_readable(req->handle) != 0;
|
||||||
writable = uv_is_writable(req->handle) != 0;
|
writable = uv_is_writable(req->handle) != 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user