[PATCH] domain_conf: rewrite if else condition