mod_pubsub: Fix check_opt_range/3 spec

This commit is contained in:
Holger Weiss 2021-08-02 21:09:55 +02:00
parent ab5e726176
commit 99ffd9bb95
1 changed files with 2 additions and 1 deletions

View File

@ -3548,7 +3548,8 @@ decode_get_pending(#xdata{fields = Fs}, Lang) ->
{error, xmpp:err_resource_constraint(Txt, Lang)}
end.
-spec check_opt_range(atom(), [proplists:property()], non_neg_integer()) -> boolean().
-spec check_opt_range(atom(), [proplists:property()],
non_neg_integer() | undefined) -> boolean().
check_opt_range(_Opt, _Opts, undefined) ->
true;
check_opt_range(Opt, Opts, Max) ->