Skip to content

Commit 620d429

Browse files
gengjiawenaddaleax
authored andcommitted
src: use bool instead of integer literal in connection_wrap.cc
Signed-off-by: gengjiawen <[email protected]> PR-URL: #25923 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Richard Lau <[email protected]>
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)