commit 04101f5: [Minor] Avoid type mismatch
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Dec 27 18:28:14 UTC 2018
Author: Vsevolod Stakhov
Date: 2018-12-26 15:45:36 +0000
URL: https://github.com/rspamd/rspamd/commit/04101f59f5cd8c08d86bbf2e5d7563f3c1a43887
[Minor] Avoid type mismatch
---
lualib/rspamadm/confighelp.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lualib/rspamadm/confighelp.lua b/lualib/rspamadm/confighelp.lua
index 6f84ae53f..1eecb9238 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
More information about the Commits
mailing list