Permalink
Browse files

WHISTLE-942: refactor wildcard_id_empty logic

  • Loading branch information...
1 parent be97d87 commit 642f74162a406b58acb82dd672b8b427cd098607 @k-anderson k-anderson committed Feb 14, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 whistle_apps/apps/callflow/src/cf_exe.erl
View
6 whistle_apps/apps/callflow/src/cf_exe.erl
@@ -254,11 +254,7 @@ handle_call({attempt, Key}, _From, #state{flow = Flow}=State) ->
handle_call({wildcard_is_empty}, _From, #state{flow = Flow}=State) ->
case wh_json:get_value([<<"children">>, <<"_">>], Flow) of
undefined -> {reply, true, State};
- ChildFlow ->
- case wh_json:is_empty(ChildFlow) of
- true -> {reply, true, State};
- false -> {reply, false, State}
- end
+ ChildFlow -> {reply, wh_json:is_empty(ChildFlow), State}
end;
handle_call(_Request, _From, State) ->
Reply = {error, unimplemented},

0 comments on commit 642f741

Please sign in to comment.