mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-12 17:01:52 +01:00
Try to fix more Dialyzer warnings
This commit is contained in:
parent
9c96d30719
commit
176114d28e
@ -71,7 +71,7 @@
|
||||
-callback get_vh_registered_users(binary(), opts()) -> [{binary(), binary()}].
|
||||
-callback get_vh_registered_users_number(binary()) -> number().
|
||||
-callback get_vh_registered_users_number(binary(), opts()) -> number().
|
||||
-callback get_password(binary(), binary()) -> false | binary().
|
||||
-callback get_password(binary(), binary()) -> false | binary() | {binary(), binary(), binary(), integer()}.
|
||||
-callback get_password_s(binary(), binary()) -> binary().
|
||||
|
||||
start() ->
|
||||
@ -267,7 +267,7 @@ get_vh_registered_users_number(Server, Opts) ->
|
||||
end,
|
||||
auth_modules(Server))).
|
||||
|
||||
-spec get_password(binary(), binary()) -> false | binary().
|
||||
-spec get_password(binary(), binary()) -> false | binary() | {binary(), binary(), binary(), integer()}.
|
||||
|
||||
get_password(User, Server) ->
|
||||
lists:foldl(fun (M, false) ->
|
||||
|
@ -1737,7 +1737,7 @@ handle_info(system_shutdown, StateName, StateData) ->
|
||||
ok
|
||||
end,
|
||||
{stop, normal, StateData};
|
||||
handle_info({route_xmlstreamelement, El}, StateName, StateData) ->
|
||||
handle_info({route_xmlstreamelement, El}, _StateName, StateData) ->
|
||||
{next_state, NStateName, NStateData, _Timeout} =
|
||||
session_established({xmlstreamelement, El}, StateData),
|
||||
fsm_next_state(NStateName, NStateData);
|
||||
|
@ -81,7 +81,7 @@ load_file(Lang, File) ->
|
||||
io:setopts(Fd, [{encoding,latin1}]),
|
||||
load_file_loop(Fd, 1, File, Lang),
|
||||
file:close(Fd);
|
||||
Error ->
|
||||
{error, Error} ->
|
||||
ExitText = iolist_to_binary([File, ": ",
|
||||
file:format_error(Error)]),
|
||||
?ERROR_MSG("Problem loading translation file ~n~s",
|
||||
|
Loading…
Reference in New Issue
Block a user