Skip to content

Commit

Permalink
Make dialyzer happy
Browse files Browse the repository at this point in the history
  • Loading branch information
prefiks committed Jul 16, 2024
1 parent ead87e3 commit 2016cf5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ejabberd_sql.erl
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,6 @@ run_sql_cmd(Command, From, State, Timestamp) ->
{error, Reason::binary()} | {aborted, Reason::binary()} | {atomic, Result::any()}.
outer_op({sql_query, 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_transaction(F, Restarts, <<"">>);
outer_op({sql_bloc, F}) -> execute_bloc(F).
Expand All @@ -552,8 +550,6 @@ outer_op({sql_bloc, F}) -> execute_bloc(F).
%% nested operation
nested_op({sql_query, Query}) ->
sql_query_internal(Query);
nested_op({sql_transaction, F}) ->
nested_op({sql_transaction, F, ?MAX_TRANSACTION_RESTARTS});
nested_op({sql_transaction, F, Restarts}) ->
NestingLevel = get(?NESTING_KEY),
if NestingLevel =:= (?TOP_LEVEL_TXN) ->
Expand Down

0 comments on commit 2016cf5

Please sign in to comment.