Consolidate two conditionals
If we get SWITCH_STATUS_BREAK then we didn't get SWITCH_STATUS_SUCCESS.
This commit is contained in:
parent
549aba0d2f
commit
ffc3f9bb0b
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue