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:
parent
f1a91108ef
commit
ffdf5cb206
|
@ -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").
|
||||||
|
|
Loading…
Reference in New Issue
Block a user