Remove useless case clause

This commit is contained in:
Evgeniy Khramtsov 2011-09-05 16:47:18 +10:00
parent f1a91108ef
commit ffdf5cb206
1 changed files with 1 additions and 6 deletions

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").