mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +01: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 ->
|
||||
{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([]) ->
|
||||
[].
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user