]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Silence warnings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Mar 2018 18:03:12 +0000 (18:03 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 15 Mar 2018 18:03:12 +0000 (18:03 +0000)
src/plugins/lua/arc.lua
src/plugins/lua/force_actions.lua
src/plugins/lua/ratelimit.lua
src/plugins/lua/reputation.lua
src/plugins/lua/whitelist.lua

index e04e2c067e6ad1806994a4b73927eb3695147523..acf590d4bc740558af8f16be81aa31106a5e9985 100644 (file)
@@ -559,7 +559,7 @@ if settings.use_redis then
   end
 end
 
-id = rspamd_config:register_symbol({
+rspamd_config:register_symbol({
   name = settings['sign_symbol'],
   callback = arc_signing_cb
 })
index d607e3343b05895304769ceab0b1820697289231..6c898b8ff87dc8157092d54249977f358a327499 100644 (file)
@@ -114,7 +114,7 @@ local function configure_module()
               local h = rspamd_cryptobox_hash.create()
               h:update(expr)
               local name = 'FORCE_ACTION_' .. string.upper(string.sub(h:hex(), 1, 12))
-              local id = rspamd_config:register_symbol({
+              rspamd_config:register_symbol({
                 type = 'normal',
                 name = name,
                 callback = cb,
@@ -152,7 +152,7 @@ local function configure_module()
           t.name = 'FORCE_ACTION_' .. name
           t.callback = cb
           t.flags = 'empty'
-          local id = rspamd_config:register_symbol(t)
+          rspamd_config:register_symbol(t)
           if t.type == 'normal' then
             for _, a in ipairs(atoms) do
               rspamd_config:register_dependency(t.name, a)
index d2aa1abb104b621473c73bc3c42d327d0b490d42..8e5cab328d6d20d2d3b88d4c70ecb3eb80f90257 100644 (file)
@@ -723,7 +723,7 @@ if opts then
     elseif info_symbol then
       s.name = info_symbol
     end
-    local id = rspamd_config:register_symbol(s)
+    rspamd_config:register_symbol(s)
     if use_ip_score then
       rspamd_config:register_dependency(s.name, 'IP_SCORE')
     end
index 1969729acd9b7a258be328bfe734644c3db781d7..28d0401ea3676eb2183e765c565d299b61860a8e 100644 (file)
@@ -990,7 +990,7 @@ local function parse_rule(name, tbl)
   end)
 
   -- We now generate symbol for checking
-  local id = rspamd_config:register_symbol{
+  rspamd_config:register_symbol{
     name = symbol,
     type = 'normal',
     callback = callback_gen(reputation_filter_cb, rule),
index 89f382946f17e1a22b5a9f668ff9004b8bb512df..7637bb5553202eb8f30ab1dc790dad864c8e4f73 100644 (file)
@@ -255,7 +255,7 @@ local configure_whitelist_module = function()
           flags = 'empty'
         end
 
-        local id = rspamd_config:register_symbol({
+        rspamd_config:register_symbol({
           name = symbol,
           flags = flags,
           callback = gen_whitelist_cb(symbol, rule)