Consolidate two conditionals

If we get SWITCH_STATUS_BREAK then we didn't get
SWITCH_STATUS_SUCCESS.
This commit is contained in:
Travis Cross committed 2014-04-09 18:41:02 +00:00
1 parent 549aba0d2f
commit ffc3f9bb0b
1 file changed
+2 -5
+2 -5
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;
}