From: Vsevolod Stakhov Date: Wed, 26 Dec 2018 15:45:36 +0000 (+0000) Subject: [Minor] Avoid type mismatch X-Git-Tag: 1.9.0~377 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04101f59f5cd8c08d86bbf2e5d7563f3c1a43887;p=thirdparty%2Frspamd.git [Minor] Avoid type mismatch --- diff --git a/lualib/rspamadm/confighelp.lua b/lualib/rspamadm/confighelp.lua index 6f84ae53f8..1eecb9238c 100644 --- a/lualib/rspamadm/confighelp.lua +++ b/lualib/rspamadm/confighelp.lua @@ -78,7 +78,7 @@ local function print_help(key, value, tabs) local nv = string.match(value['data'], '^#%s*(.*)%s*$') or value.data print(string.format('%s\tDescription: %s', tabs, nv)) end - if value['type'] then + if type(value['type']) == 'string' then print(string.format('%s\tType: %s', tabs, value['type'])) end if type(value['required']) == 'boolean' then