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

Remove useless case clause

This commit is contained in:
Evgeniy Khramtsov 2011-09-05 16:47:18 +10:00
parent f1a91108ef
commit ffdf5cb206

View File

@ -167,12 +167,7 @@ get_local_stat(_Server, [], Name) when Name == "users/all-hosts/total" ->
ejabberd_auth:get_vh_registered_users_number(Host) ejabberd_auth:get_vh_registered_users_number(Host)
+ Total + Total
end, 0, ejabberd_config:get_global_option(hosts)), end, 0, ejabberd_config:get_global_option(hosts)),
case NumUsers of ?STATVAL(integer_to_list(NumUsers), "users");
{'EXIT', _Reason} ->
?STATERR("500", "Internal Server Error");
Users ->
?STATVAL(integer_to_list(Users), "users")
end;
get_local_stat(_Server, _, Name) -> get_local_stat(_Server, _, Name) ->
?STATERR("404", "Not Found"). ?STATERR("404", "Not Found").