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:
gengjiawen authored and Daniel Bevenius committed 2019-02-07 08:14:47 +01:00
1 parent abba1020f4
commit 4e07d210e1
1 file changed
+1 -1
+1 -1
View File
@@ -94,7 +94,7 @@ void ConnectionWrap<WrapType, UVType>::AfterConnect(uv_connect_t* req,
bool readable, writable;
if (status) {
readable = writable = 0;
readable = writable = false;
} else {
readable = uv_is_readable(req->handle) != 0;
writable = uv_is_writable(req->handle) != 0;