ctdb-daemon: Improve readability of code by nesting if-statements
commit3e6660c46f5b65e11ba8e6e009c3ae2df263013e
authorMartin Schwenke <martin@meltin.net>
Fri, 8 May 2015 02:34:43 +0000 (8 12:34 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 13 May 2015 04:42:13 +0000 (13 06:42 +0200)
treecec1fad9fd76fc288d3357e804c4dbc72a2aa349
parent40eac8e4d8bc85f2329b8ed6c5ba96a141dc20a3
ctdb-daemon: Improve readability of code by nesting if-statements

ctdb_sys_have_ip() should only be run if if do_publicipcheck is set.
This is clearer if written as 2 nested if-statements rather than as a
lazy conjuction.

Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_takeover.c