diff mod_http_muc_log/mod_http_muc_log.lua @ 2842:263c0b044973

mod_http_muc_log: Remove redundant else clauses
author Kim Alvefur <zash@zash.se>
date Tue, 21 Nov 2017 00:06:59 +0100
parents 462dece0a3c2
children 53a76c994fc3
line wrap: on
line diff
--- a/mod_http_muc_log/mod_http_muc_log.lua	Tue Nov 21 00:02:58 2017 +0100
+++ b/mod_http_muc_log/mod_http_muc_log.lua	Tue Nov 21 00:06:59 2017 +0100
@@ -249,8 +249,6 @@
 		if next_when then
 			next_when = datetime.date(next_when);
 			module:log("debug", "Next message: %s", next_when);
-		else
-			next_when = "";
 		end
 
 		module:log("debug", "Find prev date with messages");
@@ -258,8 +256,6 @@
 		if prev_when then
 			prev_when = datetime.date(prev_when);
 			module:log("debug", "Previous message: %s", prev_when);
-		else
-			prev_when = "";
 		end
 	end