25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Remove useless condition

This commit is contained in:
Christophe Romain 2017-09-27 20:40:07 +02:00
parent 216a0c97b9
commit ce7acafe37

View File

@ -1035,9 +1035,7 @@ rsm_filters(SNidx, undefined, After) ->
" order by creation asc">>; " order by creation asc">>;
rsm_filters(SNidx, <<>>, undefined) -> rsm_filters(SNidx, <<>>, undefined) ->
%% 2.5 Requesting the Last Page in a Result Set %% 2.5 Requesting the Last Page in a Result Set
Now = p1_time_compat:timestamp(),
<<" where nodeid='", SNidx/binary, "'", <<" where nodeid='", SNidx/binary, "'",
" and creation<'", (encode_now(Now))/binary, "'",
" order by creation desc">>; " order by creation desc">>;
rsm_filters(SNidx, Before, undefined) -> rsm_filters(SNidx, Before, undefined) ->
<<" where nodeid='", SNidx/binary, "'", <<" where nodeid='", SNidx/binary, "'",