Removed unneeded use of length function + Remove trailing spaces

SVN Revision: 2610
This commit is contained in:
Mickaël Rémond 2009-09-21 15:10:50 +00:00
parent d6f63ceec5
commit 325660a547
1 changed files with 16 additions and 19 deletions

View File

@ -249,11 +249,9 @@ handle_info({route_chan, Channel, Resource,
NewStateData == stop ->
{stop, normal, StateData};
true ->
case length(dict:fetch_keys(NewStateData#state.channels)) of
0 ->
{stop, normal, NewStateData};
_ ->
{next_state, StateName, NewStateData}
case dict:fetch_keys(NewStateData#state.channels) of
[] -> {stop, normal, NewStateData};
_ -> {next_state, StateName, NewStateData}
end
end;
@ -1319,4 +1317,3 @@ toupper([C | Cs]) ->
end;
toupper([]) ->
[].