diff options
author | Badlop <badlop@process-one.net> | 2022-05-12 17:25:11 +0200 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2022-05-17 10:42:02 +0200 |
commit | 4f8e6fe844804fba59904702d0ef2688958e8852 (patch) | |
tree | 8d3f06b41b76c688ddcfce7698787302d5d4e34f /src/ejabberd_sql.erl | |
parent | Define license for hex.pm using SPDX identifier (diff) |
Fix errors and warnings for "rebar3 edoc"
Diffstat (limited to 'src/ejabberd_sql.erl')
-rw-r--r-- | src/ejabberd_sql.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ejabberd_sql.erl b/src/ejabberd_sql.erl index d68d1a8e1..d0f7c658f 100644 --- a/src/ejabberd_sql.erl +++ b/src/ejabberd_sql.erl @@ -488,8 +488,9 @@ run_sql_cmd(Command, From, State, Timestamp) -> abort_on_driver_error(outer_op(Command), From, Timestamp) end. -%% Only called by handle_call, only handles top level operations. -%% @spec outer_op(Op) -> {error, Reason} | {aborted, Reason} | {atomic, Result} +%% @doc Only called by handle_call, only handles top level operations. +-spec outer_op(Op::{atom(), binary()}) -> + {error, Reason::binary()} | {aborted, Reason::binary()} | {atomic, Result::any()}. outer_op({sql_query, Query}) -> sql_query_internal(Query); outer_op({sql_transaction, F}) -> |