core.portmanager: Join strings broken into multiple lines
authorKim Alvefur <zash@zash.se>
Sat, 29 Jul 2023 02:04:24 +0200
changeset 13256 84c7779618b6
parent 13255 7748dfb201de
child 13257 68d540df46b8
core.portmanager: Join strings broken into multiple lines Improves readability. Reduces line count. What's not to like? The code style and luacheck rules allows longer lines, and these strings aren't long enough to need breaking into multiple lines like this.
core/portmanager.lua
--- a/core/portmanager.lua	Sat Jul 29 02:00:55 2023 +0200
+++ b/core/portmanager.lua	Sat Jul 29 02:04:24 2023 +0200
@@ -48,14 +48,11 @@
 	if err:match(" in use") then
 		-- FIXME: Use service_name here
 		if port == 5222 or port == 5223 or port == 5269 then
-			friendly_message = "check that Prosody or another XMPP server is "
-				.."not already running and using this port";
+			friendly_message = "check that Prosody or another XMPP server is not already running and using this port";
 		elseif port == 80 or port == 81 or port == 443 then
-			friendly_message = "check that a HTTP server is not already using "
-				.."this port";
+			friendly_message = "check that a HTTP server is not already using this port";
 		elseif port == 5280 then
-			friendly_message = "check that Prosody or a BOSH connection manager "
-				.."is not already running";
+			friendly_message = "check that Prosody or a BOSH connection manager is not already running";
 		else
 			friendly_message = "this port is in use by another application";
 		end