mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +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)}
|
{error, xmpp:err_resource_constraint(Txt, Lang)}
|
||||||
end.
|
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) ->
|
check_opt_range(_Opt, _Opts, undefined) ->
|
||||||
true;
|
true;
|
||||||
check_opt_range(Opt, Opts, Max) ->
|
check_opt_range(Opt, Opts, Max) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user