]> granicus.if.org Git - ejabberd/commitdiff
Dialyzer checks always failed because the return value of the function 'get_subscribe...
authorTobias Koch <tobias.koch@logmein.com>
Mon, 12 Feb 2018 14:12:46 +0000 (15:12 +0100)
committerTobias Koch <tobias.koch@logmein.com>
Mon, 12 Feb 2018 14:12:46 +0000 (15:12 +0100)
src/mod_muc.erl

index acfbb90a04c25acaf920062aa87ddcb7e41ba950..debda4cabc10fef8aa7472401b6cf2440fa6878e 100644 (file)
 -callback unregister_online_user(binary(), ljid(), binary(), binary()) -> any().
 -callback count_online_rooms_by_user(binary(), binary(), binary()) -> non_neg_integer().
 -callback get_online_rooms_by_user(binary(), binary(), binary()) -> [{binary(), binary()}].
--callback get_subscribed_rooms(binary(), binary(), jid()) ->
-    {ok, [{ljid(), binary(), [binary()]}]} | {error, any()}.
+-callback get_subscribed_rooms(binary(), binary(), jid()) -> [ljid()] | [].
 
 %%====================================================================
 %% API
@@ -727,7 +726,7 @@ iq_get_register_info(ServerHost, Host, From, Lang) ->
               instructions = [Inst], fields = Fields},
     #register{nick = Nick,
              registered = Registered,
-             instructions = 
+             instructions =
                  translate:translate(
                    Lang, <<"You need a client that supports x:data "
                            "to register the nickname">>),