]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix type check
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 3 Mar 2018 13:35:59 +0000 (13:35 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 3 Mar 2018 13:35:59 +0000 (13:35 +0000)
lualib/rspamadm/getopt.lua

index c36774092c47aab8f65c1c9a8a768a2cd5a0e26f..20715c3874beec1c9bcf41a6862845e3b1c0a0b2 100644 (file)
@@ -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]