cpp: make callsites of Connect() function more readable
cpp: make callsites of Connect() function more readable

The consumers of Connect() function are just interested in knowning if
it has connected or not ("Did we connect?"). Leave the check for zero as
implementation detail of this function, making the callsites not having
to repeat the condition themselves.

--
Change-Id: Idc327c681c5defbb27039cd170f32d5ebd0e0a32
Reviewed-on: https://bazel-review.googlesource.com/#/c/2750/
MOS_MIGRATED_REVID=113040325

werkt/bazel,davidzchen/bazel,hermione521/bazel,aehlig/bazel,anupcshan/bazel,meteorcloudy/bazel,perezd/bazel,cushon/bazel,mrdomino/bazel,bazelbuild/bazel,davidzchen/bazel,dslomov/bazel-windows,meteorcloudy/bazel,werkt/bazel,dslomov/bazel,dslomov/bazel,twitter-forks/bazel,zhexuany/bazel,iamthearm/bazel,iamthearm/bazel,kchodorow/bazel-1,kchodorow/bazel-1,ButterflyNetwork/bazel,kchodorow/bazel-1,mikelikespie/bazel,mbrukman/bazel,UrbanCompass/bazel,rohitsaboo/bazel,meteorcloudy/bazel,dslomov/bazel,safarmer/bazel,dropbox/bazel,ulfjack/bazel,ulfjack/bazel,davidzchen/bazel,davidzchen/bazel,mbrukman/bazel,Asana/bazel,mikelalcon/bazel,kchodorow/bazel-1,bazelbuild/bazel,zhexuany/bazel,katre/bazel,UrbanCompass/bazel,spxtr/bazel,dslomov/bazel-windows,snnn/bazel,ulfjack/bazel,katre/bazel,rohitsaboo/bazel,katre/bazel,anupcshan/bazel,zhexuany/bazel,meteorcloudy/bazel,variac/bazel,mikelikespie/bazel,mikelalcon/bazel,LuminateWireless/bazel,ButterflyNetwork/bazel,abergmeier-dsfishlabs/bazel,twitter-forks/bazel,iamthearm/bazel,safarmer/bazel,mikelalcon/bazel,abergmeier-dsfishlabs/bazel,mikelalcon/bazel,katre/bazel,juhalindfors/bazel-patches,whuwxl/bazel,whuwxl/bazel,spxtr/bazel,kchodorow/bazel,variac/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,akira-baruah/bazel,safarmer/bazel,meteorcloudy/bazel,twitter-forks/bazel,katre/bazel,hermione521/bazel,mbrukman/bazel,akira-baruah/bazel,twitter-forks/bazel,snnn/bazel,davidzchen/bazel,juhalindfors/bazel-patches,variac/bazel,dropbox/bazel,werkt/bazel,dslomov/bazel,UrbanCompass/bazel,kchodorow/bazel,spxtr/bazel,dropbox/bazel,juhalindfors/bazel-patches,damienmg/bazel,kchodorow/bazel,meteorcloudy/bazel,LuminateWireless/bazel,snnn/bazel,damienmg/bazel,iamthearm/bazel,juhalindfors/bazel-patches,Asana/bazel,aehlig/bazel,aehlig/bazel,perezd/bazel,spxtr/bazel,abergmeier-dsfishlabs/bazel,hermione521/bazel,whuwxl/bazel,dslomov/bazel-windows,mrdomino/bazel,Asana/bazel,mbrukman/bazel,zhexuany/bazel,dslomov/bazel-windows,ButterflyNetwork/bazel,Asana/bazel,hermione521/bazel,kchodorow/bazel,variac/bazel,dslomov/bazel-windows,anupcshan/bazel,zhexuany/bazel,UrbanCompass/bazel,snnn/bazel,kchodorow/bazel-1,ButterflyNetwork/bazel,variac/bazel,whuwxl/bazel,cushon/bazel,bazelbuild/bazel,akira-baruah/bazel,perezd/bazel,hermione521/bazel,perezd/bazel,werkt/bazel,werkt/bazel,LuminateWireless/bazel,abergmeier-dsfishlabs/bazel,aehlig/bazel,kchodorow/bazel,rohitsaboo/bazel,spxtr/bazel,hermione521/bazel,mrdomino/bazel,aehlig/bazel,mikelalcon/bazel,snnn/bazel,juhalindfors/bazel-patches,dslomov/bazel-windows,kchodorow/bazel,mikelikespie/bazel,twitter-forks/bazel,Asana/bazel,LuminateWireless/bazel,ulfjack/bazel,abergmeier-dsfishlabs/bazel,Asana/bazel,dslomov/bazel,dslomov/bazel,akira-baruah/bazel,juhalindfors/bazel-patches,abergmeier-dsfishlabs/bazel,ulfjack/bazel,anupcshan/bazel,kchodorow/bazel,snnn/bazel,anupcshan/bazel,snnn/bazel,rohitsaboo/bazel,safarmer/bazel,dslomov/bazel,damienmg/bazel,davidzchen/bazel,zhexuany/bazel,akira-baruah/bazel,safarmer/bazel,katre/bazel,rohitsaboo/bazel,perezd/bazel,davidzchen/bazel,dropbox/bazel,cushon/bazel,mikelalcon/bazel,damienmg/bazel,ulfjack/bazel,damienmg/bazel,mbrukman/bazel,mrdomino/bazel,dropbox/bazel,dropbox/bazel,rohitsaboo/bazel,perezd/bazel,cushon/bazel,whuwxl/bazel,cushon/bazel,mrdomino/bazel,juhalindfors/bazel-patches,mikelikespie/bazel,perezd/bazel,meteorcloudy/bazel,twitter-forks/bazel,LuminateWireless/bazel,whuwxl/bazel,spxtr/bazel,werkt/bazel,damienmg/bazel,damienmg/bazel,Asana/bazel,variac/bazel,iamthearm/bazel,UrbanCompass/bazel,mikelikespie/bazel,mikelikespie/bazel,UrbanCompass/bazel,variac/bazel,safarmer/bazel,mrdomino/bazel,aehlig/bazel,mbrukman/bazel,kchodorow/bazel-1,bazelbuild/bazel,cushon/bazel,LuminateWireless/bazel,ButterflyNetwork/bazel,twitter-forks/bazel,iamthearm/bazel,aehlig/bazel,akira-baruah/bazel,ulfjack/bazel,anupcshan/bazel,spxtr/bazel,bazelbuild/bazel