Consolidate two conditionals

If we get SWITCH_STATUS_BREAK then we didn't get
SWITCH_STATUS_SUCCESS.
This commit is contained in:
Travis Cross 2014-04-09 07:30:14 +00:00
parent 6f279e52b0
commit beca9eff9d

View File

@ -320,11 +320,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro_event(switch_core_sessio
switch_regex_safe_free(re);
switch_safe_free(field_expanded_alloc);
if ((match && do_break && switch_true(do_break)) || status == SWITCH_STATUS_BREAK) {
break;
}
if (status != SWITCH_STATUS_SUCCESS) {
if ((match && do_break && switch_true(do_break))
|| status != SWITCH_STATUS_SUCCESS) {
break;
}