commit 9e39ed6: [Minor] Pet luacheck

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Jan 12 15:49:09 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-01-12 15:46:45 +0000
URL: https://github.com/rspamd/rspamd/commit/9e39ed68f5f5e6488365bba844238e3e03b33017 (HEAD -> master)

[Minor] Pet luacheck

---
 lualib/lua_content/vcard.lua | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/lualib/lua_content/vcard.lua b/lualib/lua_content/vcard.lua
index 123799954..91460a9d4 100644
--- a/lualib/lua_content/vcard.lua
+++ b/lualib/lua_content/vcard.lua
@@ -36,13 +36,6 @@ end
 
 local exports = {}
 
-local function extract_text_data(specific)
-  local fun = require "fun"
-
-  local tbl = fun.totable(fun.map(function(e) return e[2]:lower() end, specific.elts))
-  return table.concat(tbl, '\n')
-end
-
 local function process_vcard(input, mpart, task)
   local control={n='\n', r=''}
   local rspamd_url = require "rspamd_url"


More information about the Commits mailing list