]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Pet luacheck
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 5 May 2019 08:26:39 +0000 (09:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 5 May 2019 08:26:39 +0000 (09:26 +0100)
src/plugins/lua/whitelist.lua

index 4836f2d02077e7f34ddcf3590b3455d6dbcb8bd9..1cc8d645c559d48d119a3f4e1f9c43e17634bfa4 100644 (file)
@@ -315,14 +315,14 @@ local configure_whitelist_module = function()
 
     local function try_opts(where)
       local ret = false
-      local opts = rspamd_config:get_all_opt(where)
-      if type(opts) == 'table' then
-        if type(opts['check_local']) == 'boolean' then
-          options.check_local = opts['check_local']
+      local test_opts = rspamd_config:get_all_opt(where)
+      if type(test_opts) == 'table' then
+        if type(test_opts.check_local) == 'boolean' then
+          options.check_local = test_opts.check_local
           ret = true
         end
-        if type(opts['check_authed']) == 'boolean' then
-          options.check_authed = opts['check_authed']
+        if type(test_opts.check_authed) == 'boolean' then
+          options.check_authed = test_opts.check_authed
           ret = true
         end
       end