mod_push: Fix API call return type on error

A call that yields a 'rescode' isn't supposed to return an error tuple.
This commit is contained in:
Holger Weiss 2020-11-04 09:07:30 +01:00
parent 37c75f556d
commit f40c5c304d
1 changed files with 2 additions and 2 deletions

View File

@ -243,9 +243,9 @@ delete_old_sessions(Days) ->
[] -> [] ->
?INFO_MSG("Deleted push sessions older than ~B days", [Days]), ?INFO_MSG("Deleted push sessions older than ~B days", [Days]),
ok; ok;
[NotOk | _] -> [{error, Reason} | _] ->
?ERROR_MSG("Error while deleting old push sessions: ~p", [NotOk]), ?ERROR_MSG("Error while deleting old push sessions: ~p", [NotOk]),
NotOk Reason
end. end.
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------