mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Cosmetic change, remove useless case
This commit is contained in:
parent
7c1b4d0fcd
commit
8028a9545a
1 changed files with 2 additions and 8 deletions
|
@ -447,10 +447,7 @@ disco_identity(Host, Node, From) ->
|
|||
{result, _} ->
|
||||
{result, [#identity{category = <<"pubsub">>, type = <<"pep">>},
|
||||
#identity{category = <<"pubsub">>, type = <<"leaf">>,
|
||||
name = case get_option(Options, title) of
|
||||
false -> <<>>;
|
||||
Title -> Title
|
||||
end}]};
|
||||
name = get_option(Options, title, <<>>)}]};
|
||||
_ ->
|
||||
{result, []}
|
||||
end
|
||||
|
@ -514,10 +511,7 @@ disco_items(Host, <<>>, From) ->
|
|||
{result, _} ->
|
||||
[#disco_item{node = Node,
|
||||
jid = jid:make(Host),
|
||||
name = case get_option(Options, title) of
|
||||
false -> <<>>;
|
||||
Title -> Title
|
||||
end} | Acc];
|
||||
name = get_option(Options, title, <<>>)} | Acc];
|
||||
_ ->
|
||||
Acc
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue