diff mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 2634:71ce798c86cc

mod_storage_xmlarchive: Add some spacing to improve readability
author Kim Alvefur <zash@zash.se>
date Tue, 21 Mar 2017 11:17:46 +0100
parents 1330ed88ecd8
children 6e8c3fc48237
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Tue Mar 21 11:17:17 2017 +0100
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Tue Mar 21 11:17:46 2017 +0100
@@ -196,7 +196,9 @@
 					module:log("warn", "data[%q][%d] is nil", date, i);
 					break;
 				end
+
 				local i_when, i_with = item.when, item.with;
+
 				if type(i_when) == "string" then
 					i_when = dt.parse(i_when);
 				end
@@ -204,6 +206,7 @@
 					module:log("warn", "data[%q][%d].when is invalid", date, i);
 					break;
 				end
+
 				if  (not q_with or i_with == q_with)
 				and (not q_start or i_when >= q_start)
 				and (not q_end or i_when <= q_end) then