mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
mod_pubsub: Fix check_opt_range/3 spec
This commit is contained in:
parent
ab5e726176
commit
99ffd9bb95
@ -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) ->
|
||||
|
Loading…
Reference in New Issue
Block a user