mod_mam: Apply small indentation fixes

This commit is contained in:
Holger Weiss 2015-02-17 23:32:46 +01:00
parent 6d38be2a75
commit 24dd1428c5
1 changed files with 10 additions and 10 deletions

View File

@ -934,7 +934,7 @@ query_archive(#mam_query{mam_jid = {U, S}, max = Max} = Query) ->
StartID = get_start_id(Query, Meta), StartID = get_start_id(Query, Meta),
query_archive(Query, #mam_query_state{current = StartID, query_archive(Query, #mam_query_state{current = StartID,
n_remaining = Max}, n_remaining = Max},
Meta, DBType); Meta, DBType);
{error, Error} -> {error, Error} ->
{error, Error} {error, Error}
end. end.
@ -966,15 +966,15 @@ query_archive(#mam_query{mam_jid = {U, S},
case read_message({{U, S}, ID}, Filter, Direction, DBType) of case read_message({{U, S}, ID}, Filter, Direction, DBType) of
#mam_msg{} = Msg -> #mam_msg{} = Msg ->
NewQueryState = NewQueryState =
case QueryState of case QueryState of
#mam_query_state{first = undefined} -> #mam_query_state{first = undefined} ->
QueryState#mam_query_state{first = ID, QueryState#mam_query_state{first = ID,
last = ID, last = ID,
messages = [Msg]}; messages = [Msg]};
#mam_query_state{} -> #mam_query_state{} ->
QueryState#mam_query_state{last = ID, QueryState#mam_query_state{last = ID,
messages = [Msg | Msgs]} messages = [Msg | Msgs]}
end, end,
query_next(Query, NewQueryState, Meta, N - 1, DBType); query_next(Query, NewQueryState, Meta, N - 1, DBType);
drop -> drop ->
query_next(Query, QueryState, Meta, N, DBType); query_next(Query, QueryState, Meta, N, DBType);