# HG changeset patch # User Kim Alvefur # Date 1510759278 -3600 # Node ID f3a09a5592010a0c8eb7a11ee8536b96259fb7c1 # Parent 9ffb059c9ba5e80e7aba66c6e8e951562cd43403 mod_storage_muc_log: Trim trailing whitespace [luacheck] diff -r 9ffb059c9ba5 -r f3a09a559201 mod_storage_muc_log/mod_storage_muc_log.lua --- a/mod_storage_muc_log/mod_storage_muc_log.lua Tue Oct 17 12:42:20 2017 +0200 +++ b/mod_storage_muc_log/mod_storage_muc_log.lua Wed Nov 15 16:21:18 2017 +0100 @@ -103,7 +103,7 @@ local today, time, data, err, item; local inner_start, inner_stop, inner_step; local outer_start, outer_stop, outer_step = 1, #dates, 1; - if query and query.reverse then + if query and query.reverse then outer_start, outer_stop, outer_step = outer_stop, outer_start, -outer_step; seek_once = query.before; if seek_once then @@ -119,7 +119,7 @@ data, err = data_load(node, host, datastore .. "/" .. today); if data then inner_start, inner_stop, inner_step = 1, #data, 1; - if query and query.reverse then + if query and query.reverse then inner_start, inner_stop, inner_step = inner_stop, inner_start, -inner_step; end if seek_once then