summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-05 09:26:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-05-05 09:26:39 +0100
commit3b808ddf62ed256b0350bb3f9821afcc6a664959 (patch)
tree7d49c011c1be371b4c4e593c98392040307bbb54 /src
parent2767ccb6fee0fad125db5848b88136489bebc611 (diff)
downloadrspamd-3b808ddf62ed256b0350bb3f9821afcc6a664959.tar.gz
rspamd-3b808ddf62ed256b0350bb3f9821afcc6a664959.zip
[Minor] Pet luacheck
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/whitelist.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua
index 4836f2d02..1cc8d645c 100644
--- a/src/plugins/lua/whitelist.lua
+++ b/src/plugins/lua/whitelist.lua
@@ -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