From 8028a9545aa6048d86003b5e7339f159cd6664e8 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Wed, 25 Oct 2017 11:48:56 +0200 Subject: [PATCH] Cosmetic change, remove useless case --- src/mod_pubsub.erl | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 22e095e7a..1028a048d 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -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