diff options
Diffstat (limited to 'src/ejabberd_oauth_rest.erl')
-rw-r--r-- | src/ejabberd_oauth_rest.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ejabberd_oauth_rest.erl b/src/ejabberd_oauth_rest.erl index 6e2e92218..151946d30 100644 --- a/src/ejabberd_oauth_rest.erl +++ b/src/ejabberd_oauth_rest.erl @@ -92,8 +92,7 @@ path(Path) -> <<Base/binary, "/", Path/binary>>. --spec opt_type(ext_api_path_oauth) -> fun((binary()) -> binary()); - (atom()) -> [atom()]. +-spec opt_type(atom()) -> fun((any()) -> any()) | [atom()]. opt_type(ext_api_path_oauth) -> fun (X) -> iolist_to_binary(X) end; opt_type(_) -> [ext_api_path_oauth]. |