25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01: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)
+ Total
end, 0, ejabberd_config:get_global_option(hosts)),
case NumUsers of
{'EXIT', _Reason} ->
?STATERR("500", "Internal Server Error");
Users ->
?STATVAL(integer_to_list(Users), "users")
end;
?STATVAL(integer_to_list(NumUsers), "users");
get_local_stat(_Server, _, Name) ->
?STATERR("404", "Not Found").