mod_pubsub: Split line in config check to improve readability
authorKim Alvefur <zash@zash.se>
Sun, 23 Dec 2018 03:06:35 +0100
changeset 9729 8ad689b6d26f
parent 9728 8e6a0e1c1876
child 9730 a726668b3c48
mod_pubsub: Split line in config check to improve readability Also makes it easier to compare with mod_pep
plugins/mod_pubsub/mod_pubsub.lua
--- a/plugins/mod_pubsub/mod_pubsub.lua	Sun Dec 23 03:05:58 2018 +0100
+++ b/plugins/mod_pubsub/mod_pubsub.lua	Sun Dec 23 03:06:35 2018 +0100
@@ -103,7 +103,8 @@
 	if (new_config["max_items"] or 1) > max_max_items then
 		return false;
 	end
-	if new_config["access_model"] ~= "whitelist" and new_config["access_model"] ~= "open" then
+	if new_config["access_model"] ~= "whitelist"
+	and new_config["access_model"] ~= "open" then
 		return false;
 	end
 	return true;