mod_http_upload: Fix function specification
The mod_opt_type/1 function can return the list of option names.
This commit is contained in:
parent
9aa4cd41fe
commit
6dc35e8fcb
|
@ -139,7 +139,7 @@ stop(ServerHost) ->
|
||||||
ok = supervisor:terminate_child(ejabberd_sup, Proc),
|
ok = supervisor:terminate_child(ejabberd_sup, Proc),
|
||||||
ok = supervisor:delete_child(ejabberd_sup, Proc).
|
ok = supervisor:delete_child(ejabberd_sup, Proc).
|
||||||
|
|
||||||
-spec mod_opt_type(atom()) -> fun((term()) -> term()).
|
-spec mod_opt_type(atom()) -> fun((term()) -> term()) | [atom()].
|
||||||
|
|
||||||
mod_opt_type(host) ->
|
mod_opt_type(host) ->
|
||||||
fun iolist_to_binary/1;
|
fun iolist_to_binary/1;
|
||||||
|
|
Loading…
Reference in New Issue