24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-14 22:00:16 +02:00

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

View File

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