summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-14 15:54:21 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-14 15:54:21 +0200
commit3590c28e73e34649d15c401db7ee6f4142a8a753 (patch)
tree2f905347a97129679251cc77d53d72291061df4a /src/lua
parentaedd9207b6d7e03bb13fb3866a3d54d32982d12b (diff)
downloadrspamd-3590c28e73e34649d15c401db7ee6f4142a8a753.tar.gz
rspamd-3590c28e73e34649d15c401db7ee6f4142a8a753.zip
[Minor] Lint Lua plugins & global functions
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/global_functions.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lua/global_functions.lua b/src/lua/global_functions.lua
index b8b840043..879309011 100644
--- a/src/lua/global_functions.lua
+++ b/src/lua/global_functions.lua
@@ -1,3 +1,4 @@
+local logger = require "rspamd_logger"
-- This function parses redis server definition using either
-- specific server string for this module or global
@@ -6,7 +7,6 @@ function rspamd_parse_redis_server(module_name)
local default_port = 6379
local default_timeout = 1.0
- local logger = require "rspamd_logger"
local upstream_list = require "rspamd_upstream_list"
local function try_load_redis_servers(options)
@@ -313,9 +313,6 @@ local function meta_urls_function(task)
return {0}
end
-local function meta_attachments_function(task)
-end
-
local metafunctions = {
{
cb = meta_size_function,
@@ -380,4 +377,4 @@ function rspamd_count_metatokens()
end
return total
-end \ No newline at end of file
+end