diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-07 11:41:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-07 11:41:28 +0100 |
commit | 662145d0554de5e769b92dab2d41173a98adcee5 (patch) | |
tree | ec28311a0bce6181f248ba7b50304293ad764e44 /src/plugins/lua/rspamd_update.lua | |
parent | bbd88232db43d18f5e0de5a6502848d4074621c5 (diff) | |
download | rspamd-662145d0554de5e769b92dab2d41173a98adcee5.tar.gz rspamd-662145d0554de5e769b92dab2d41173a98adcee5.zip |
[Minor] Reformat all Lua code, no functional changes
Diffstat (limited to 'src/plugins/lua/rspamd_update.lua')
-rw-r--r-- | src/plugins/lua/rspamd_update.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/lua/rspamd_update.lua b/src/plugins/lua/rspamd_update.lua index 7800d419f..deda0381a 100644 --- a/src/plugins/lua/rspamd_update.lua +++ b/src/plugins/lua/rspamd_update.lua @@ -74,14 +74,14 @@ local function check_version(obj) if rspamd_version('cmp', obj['min_version']) > 0 then ret = false rspamd_logger.errx(rspamd_config, 'updates require at least %s version of rspamd', - obj['min_version']) + obj['min_version']) end end if obj['max_version'] then if rspamd_version('cmp', obj['max_version']) < 0 then ret = false rspamd_logger.errx(rspamd_config, 'updates require maximum %s version of rspamd', - obj['max_version']) + obj['max_version']) end end @@ -92,7 +92,7 @@ local function gen_callback() return function(data) local parser = ucl.parser() - local res,err = parser:parse_string(data) + local res, err = parser:parse_string(data) if not res then rspamd_logger.warnx(rspamd_config, 'cannot parse updates map: ' .. err) @@ -114,7 +114,7 @@ local function gen_callback() end rspamd_logger.infox(rspamd_config, 'loaded new rules with hash "%s"', - h:hex()) + h:hex()) end end @@ -131,7 +131,7 @@ if section and section.rules then end if type(section.rules) ~= 'table' then - section.rules = {section.rules} + section.rules = { section.rules } end fun.each(function(elt) |