25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Make dialyzer happy

This commit is contained in:
Paweł Chmielowski 2024-07-16 15:56:41 +02:00
parent ead87e3727
commit 2016cf547f

View File

@ -542,8 +542,6 @@ run_sql_cmd(Command, From, State, Timestamp) ->
{error, Reason::binary()} | {aborted, Reason::binary()} | {atomic, Result::any()}. {error, Reason::binary()} | {aborted, Reason::binary()} | {atomic, Result::any()}.
outer_op({sql_query, Query}) -> outer_op({sql_query, Query}) ->
sql_query_internal(Query); sql_query_internal(Query);
outer_op({sql_transaction, F}) ->
outer_op({sql_transaction, F, ?MAX_TRANSACTION_RESTARTS});
outer_op({sql_transaction, F, Restarts}) -> outer_op({sql_transaction, F, Restarts}) ->
outer_transaction(F, Restarts, <<"">>); outer_transaction(F, Restarts, <<"">>);
outer_op({sql_bloc, F}) -> execute_bloc(F). outer_op({sql_bloc, F}) -> execute_bloc(F).
@ -552,8 +550,6 @@ outer_op({sql_bloc, F}) -> execute_bloc(F).
%% nested operation %% nested operation
nested_op({sql_query, Query}) -> nested_op({sql_query, Query}) ->
sql_query_internal(Query); sql_query_internal(Query);
nested_op({sql_transaction, F}) ->
nested_op({sql_transaction, F, ?MAX_TRANSACTION_RESTARTS});
nested_op({sql_transaction, F, Restarts}) -> nested_op({sql_transaction, F, Restarts}) ->
NestingLevel = get(?NESTING_KEY), NestingLevel = get(?NESTING_KEY),
if NestingLevel =:= (?TOP_LEVEL_TXN) -> if NestingLevel =:= (?TOP_LEVEL_TXN) ->