aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/lua/tlds.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-14 20:39:16 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-15 17:30:39 +0200
commitda83f5296a9e41bc55c8a5bd83fdc3bfd7bf5f54 (patch)
tree14bc67a2c9af086a375335621457f404df6bea19 /test/functional/lua/tlds.lua
parentfc406133889dc128f44e351c3198994c2e8d1b8e (diff)
downloadrspamd-da83f5296a9e41bc55c8a5bd83fdc3bfd7bf5f54.tar.gz
rspamd-da83f5296a9e41bc55c8a5bd83fdc3bfd7bf5f54.zip
[Minor] Lint rspamadm & test suite scripts
Diffstat (limited to 'test/functional/lua/tlds.lua')
-rw-r--r--test/functional/lua/tlds.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/lua/tlds.lua b/test/functional/lua/tlds.lua
index bc655dc9e..efaf01af5 100644
--- a/test/functional/lua/tlds.lua
+++ b/test/functional/lua/tlds.lua
@@ -1,7 +1,7 @@
rspamd_config:register_symbol({
name = 'TEST_TLD',
score = 1.0,
- callback = function(task)
+ callback = function()
local prefixes = {
'',
'example.'
@@ -38,7 +38,7 @@ rspamd_config:register_symbol({
return
end
local u = rspamd_url.create(pool, p .. d)
- local test = u:get_tld()
+ test = u:get_tld()
if (test ~= d) then
table.insert(worry, 'url.get_tld:' .. p .. d .. ':' .. test)
return