1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 01:39:35 +02:00

Fix dialyzer warnings in recent commit

This commit is contained in:
Badlop 2025-08-15 16:32:54 +02:00
parent e1dc686ae7
commit 3183e2f733

View file

@ -602,8 +602,7 @@ config_reloaded() ->
end end
end, New). end, New).
-spec return_socket_error(inet:posix(), endpoint(), module()) -> no_return().
-spec return_socket_error(inet:posix(), endpoint(), module()) -> ok.
return_socket_error(Reason, EndPoint, Module) -> return_socket_error(Reason, EndPoint, Module) ->
?ERROR_MSG("Failed to open socket at ~ts for ~ts: ~ts", ?ERROR_MSG("Failed to open socket at ~ts for ~ts: ~ts",
[format_endpoint(EndPoint), Module, format_error(Reason)]), [format_endpoint(EndPoint), Module, format_error(Reason)]),
@ -613,6 +612,7 @@ return_socket_error(Reason, EndPoint, Module) ->
return_init_error(Reason) -> return_init_error(Reason) ->
proc_lib:init_ack({error, Reason}). proc_lib:init_ack({error, Reason}).
-else. -else.
-spec return_init_error(inet:posix()) -> no_return().
return_init_error(Reason) -> return_init_error(Reason) ->
proc_lib:init_fail({error, Reason}, {exit, normal}). proc_lib:init_fail({error, Reason}, {exit, normal}).
-endif. -endif.