mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-21 14:06:57 +02:00
Removed unneeded use of length function + Remove trailing spaces
SVN Revision: 2610
This commit is contained in:
parent
d6f63ceec5
commit
325660a547
@ -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([]) ->
|
||||||
[].
|
[].
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user