Skip to content

Commit 620d429

Browse files
gengjiawenaddaleax
authored andcommittedFeb 7, 2019
src: use bool instead of integer literal in connection_wrap.cc
Signed-off-by: gengjiawen <technicalcute@gmail.com> PR-URL: #25923 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
1 parent 8cedfb8 commit 620d429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/connection_wrap.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void ConnectionWrap<WrapType, UVType>::AfterConnect(uv_connect_t* req,
9494
bool readable, writable;
9595

9696
if (status) {
97-
readable = writable = 0;
97+
readable = writable = false;
9898
} else {
9999
readable = uv_is_readable(req->handle) != 0;
100100
writable = uv_is_writable(req->handle) != 0;

0 commit comments

Comments
 (0)
Please sign in to comment.