From f8a2c4d7abfb5e0817a495e17b0d61f46e7adfa8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 29 Jul 2023 02:04:24 +0200 Subject: 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 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/portmanager.lua b/core/portmanager.lua index c1ae0685..c9b90fd7 100644 --- a/core/portmanager.lua +++ b/core/portmanager.lua @@ -48,14 +48,11 @@ local function error_to_friendly_message(service_name, port, err) --luacheck: ig 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 -- cgit v1.2.3