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 549aba0d2f
commit ffc3f9bb0b
1 changed files with 2 additions and 5 deletions

View File

@ -319,11 +319,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;
}