mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 10:26:41 +00:00
Consolidate two conditionals
If we get SWITCH_STATUS_BREAK then we didn't get SWITCH_STATUS_SUCCESS.
This commit is contained in:
parent
6f279e52b0
commit
beca9eff9d
@ -320,11 +320,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro_event(switch_core_sessio
|
|||||||
switch_regex_safe_free(re);
|
switch_regex_safe_free(re);
|
||||||
switch_safe_free(field_expanded_alloc);
|
switch_safe_free(field_expanded_alloc);
|
||||||
|
|
||||||
if ((match && do_break && switch_true(do_break)) || status == SWITCH_STATUS_BREAK) {
|
if ((match && do_break && switch_true(do_break))
|
||||||
break;
|
|| status != SWITCH_STATUS_SUCCESS) {
|
||||||
}
|
|
||||||
|
|
||||||
if (status != SWITCH_STATUS_SUCCESS) {
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user