Skip to content

Commit

Permalink
src: use bool instead of integer literal in connection_wrap.cc
Browse files Browse the repository at this point in the history
Signed-off-by: gengjiawen <[email protected]>

PR-URL: nodejs#25923
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • Loading branch information
gengjiawen authored and danbev committed Feb 7, 2019
1 parent abba102 commit 4e07d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4e07d21

Please sign in to comment.