25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix a pair of pubsub specs to please Dialyzer

This commit is contained in:
Badlop 2020-12-18 20:26:11 +01:00
parent ac24d6ee9f
commit 705f401961

View File

@ -35,7 +35,7 @@
delete_subscription/1, update_subscription/1]).
-export([export/1]).
-spec read_subscription(SubID :: string()) -> {ok, #pubsub_subscription{}} | notfound.
-spec read_subscription(SubID :: mod_pubsub:subId()) -> {ok, #pubsub_subscription{}} | notfound.
read_subscription(SubID) ->
case
ejabberd_sql:sql_query_t(
@ -49,7 +49,7 @@ read_subscription(SubID) ->
options = lists:map(fun subscription_opt_from_sql/1, Options)}}
end.
-spec delete_subscription(SubID :: string()) -> ok.
-spec delete_subscription(SubID :: mod_pubsub:subId()) -> ok.
delete_subscription(SubID) ->
ejabberd_sql:sql_query_t(
?SQL("delete from pubsub_subscription_opt "