diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-12-04 19:48:43 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-12-04 19:48:43 +0000 |
commit | 22604a259063b4eeaa9498c0ccd2a3f953467c9e (patch) | |
tree | 8a5327facd2ce740c3bd0875be7dabfa44d26a75 /utils | |
parent | ae4d8b6c5ae8116778c1d95eb964ecc05caf677f (diff) | |
download | rspamd-22604a259063b4eeaa9498c0ccd2a3f953467c9e.tar.gz rspamd-22604a259063b4eeaa9498c0ccd2a3f953467c9e.zip |
[Minor] Apply luacheck suggestions
Diffstat (limited to 'utils')
-rw-r--r-- | utils/sa_trivial_convert.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/sa_trivial_convert.lua b/utils/sa_trivial_convert.lua index 56a01adfa..2ea53bed1 100644 --- a/utils/sa_trivial_convert.lua +++ b/utils/sa_trivial_convert.lua @@ -99,7 +99,7 @@ local function handle_header_def(hline, cur_rule) end end - cur_rule['ordinary'] = ordinary and (not (#hdr_params > 1)) + cur_rule['ordinary'] = ordinary and #hdr_params <= 1 cur_rule['header'] = hdr_params end end @@ -435,7 +435,7 @@ mmap_conf:close() rspamd_logger.messagex('stored multimap conf in %s', 'auto_multimap.conf') local sa_remain = io.open('auto_sa.conf', 'w') -fun.each(function(l) +fun.each(function(l) sa_remain:write(l) sa_remain:write('\n') end, fun.filter(function(l) return not string.match(l, '^%s+$') end, complicated)) |