aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-03 13:35:59 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-03 13:35:59 +0000
commit22f1d4a067ccfbcdc6bcc83e6a6692da5e774c4e (patch)
treecb7010342cfb47ddf50ef68edb1fc620ee34adb8
parentc711b12514d29da6123247e39ab8a12e8633a393 (diff)
downloadrspamd-22f1d4a067ccfbcdc6bcc83e6a6692da5e774c4e.tar.gz
rspamd-22f1d4a067ccfbcdc6bcc83e6a6692da5e774c4e.zip
[Minor] Fix type check
-rw-r--r--lualib/rspamadm/getopt.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/rspamadm/getopt.lua b/lualib/rspamadm/getopt.lua
index c36774092..20715c387 100644
--- a/lualib/rspamadm/getopt.lua
+++ b/lualib/rspamadm/getopt.lua
@@ -1,6 +1,6 @@
local function insert_option(tab, name, value)
if tab[name] then
- if type(tab[name] == 'table') then
+ if type(tab[name]) == 'table' then
table.insert(tab[name], value)
else
local old_val = tab[name]