mod_auth_ldap: Split long line into many [luacheck]

Tue, 26 Sep 2017 12:35:08 +0200

author
Kim Alvefur <zash@zash.se>
date
Tue, 26 Sep 2017 12:35:08 +0200
changeset 2774
41565a743cad
parent 2773
7a4e8dbbd30d
child 2775
8407137c0a3b

mod_auth_ldap: Split long line into many [luacheck]

mod_auth_ldap/mod_auth_ldap.lua file | annotate | diff | comparison | revisions
--- a/mod_auth_ldap/mod_auth_ldap.lua	Mon Sep 25 11:20:05 2017 +0100
+++ b/mod_auth_ldap/mod_auth_ldap.lua	Tue Sep 26 12:35:08 2017 +0200
@@ -3,7 +3,10 @@
 local jid_split = require "util.jid".split;
 local new_sasl = require "util.sasl".new;
 local lualdap = require "lualdap";
-local function ldap_filter_escape(s) return (s:gsub("[*()\\%z]", function(c) return ("\\%02x"):format(c:byte()) end)); end
+
+local function ldap_filter_escape(s)
+	return (s:gsub("[*()\\%z]", function(c) return ("\\%02x"):format(c:byte()) end));
+end
 
 -- Config options
 local ldap_server = module:get_option_string("ldap_server", "localhost");

mercurial