mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Merge pull request #399 from toopay/patch-cleanup-unused-vars
Fix unused vars warning
This commit is contained in:
commit
17a7844e40
@ -300,7 +300,7 @@ get_password_with_authmodule(User, Server) ->
|
|||||||
|
|
||||||
-spec is_user_exists(binary(), binary()) -> boolean().
|
-spec is_user_exists(binary(), binary()) -> boolean().
|
||||||
|
|
||||||
is_user_exists(User, <<"">>) ->
|
is_user_exists(_User, <<"">>) ->
|
||||||
false;
|
false;
|
||||||
|
|
||||||
is_user_exists(User, Server) ->
|
is_user_exists(User, Server) ->
|
||||||
|
@ -2349,7 +2349,7 @@ create_node(Host, ServerHost, Node, Owner, GivenType, Access, Configuration) ->
|
|||||||
{result, {NodeId, _SubsByDepth, default}} ->
|
{result, {NodeId, _SubsByDepth, default}} ->
|
||||||
ejabberd_hooks:run(pubsub_create_node, ServerHost, [ServerHost, Host, Node, NodeId, NodeOptions]),
|
ejabberd_hooks:run(pubsub_create_node, ServerHost, [ServerHost, Host, Node, NodeId, NodeOptions]),
|
||||||
{result, Reply};
|
{result, Reply};
|
||||||
{result, {NodeId, _SubsByDepth, Result}} ->
|
{result, {NodeId, _SubsByDepth, _Result}} ->
|
||||||
ejabberd_hooks:run(pubsub_create_node, ServerHost, [ServerHost, Host, Node, NodeId, NodeOptions]),
|
ejabberd_hooks:run(pubsub_create_node, ServerHost, [ServerHost, Host, Node, NodeId, NodeOptions]),
|
||||||
{result, Reply};
|
{result, Reply};
|
||||||
Error ->
|
Error ->
|
||||||
|
@ -142,7 +142,7 @@ process([<<"change_password">>],
|
|||||||
{404, [], ErrorText}
|
{404, [], ErrorText}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
process(Path, _Request) ->
|
process(_Path, _Request) ->
|
||||||
{404, [], "Not Found"}.
|
{404, [], "Not Found"}.
|
||||||
|
|
||||||
%%%----------------------------------------------------------------------
|
%%%----------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user