mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Cosmetic change, remove useless case
This commit is contained in:
parent
7c1b4d0fcd
commit
8028a9545a
@ -447,10 +447,7 @@ disco_identity(Host, Node, From) ->
|
|||||||
{result, _} ->
|
{result, _} ->
|
||||||
{result, [#identity{category = <<"pubsub">>, type = <<"pep">>},
|
{result, [#identity{category = <<"pubsub">>, type = <<"pep">>},
|
||||||
#identity{category = <<"pubsub">>, type = <<"leaf">>,
|
#identity{category = <<"pubsub">>, type = <<"leaf">>,
|
||||||
name = case get_option(Options, title) of
|
name = get_option(Options, title, <<>>)}]};
|
||||||
false -> <<>>;
|
|
||||||
Title -> Title
|
|
||||||
end}]};
|
|
||||||
_ ->
|
_ ->
|
||||||
{result, []}
|
{result, []}
|
||||||
end
|
end
|
||||||
@ -514,10 +511,7 @@ disco_items(Host, <<>>, From) ->
|
|||||||
{result, _} ->
|
{result, _} ->
|
||||||
[#disco_item{node = Node,
|
[#disco_item{node = Node,
|
||||||
jid = jid:make(Host),
|
jid = jid:make(Host),
|
||||||
name = case get_option(Options, title) of
|
name = get_option(Options, title, <<>>)} | Acc];
|
||||||
false -> <<>>;
|
|
||||||
Title -> Title
|
|
||||||
end} | Acc];
|
|
||||||
_ ->
|
_ ->
|
||||||
Acc
|
Acc
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user