From: Vsevolod Stakhov Date: Mon, 29 May 2023 19:46:44 +0000 (+0100) Subject: [Minor] Pet luacheck X-Git-Tag: 3.6~92 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8dd05bdf733925bc6c3519704c9b2a4e4c850788;p=rspamd.git [Minor] Pet luacheck --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 818a58701..2cc878ec8 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -89,7 +89,7 @@ local function parse_multimap_value(parse_rule, p_ret) return true,sym,score,opts else if p_ret ~= '' then - rspamd_logger.infox(task, '%s: cannot parse string "%s"', + rspamd_logger.infox(rspamd_config, '%s: cannot parse string "%s"', parse_rule.symbol, p_ret) end @@ -1011,7 +1011,7 @@ local function multimap_on_load_gen(rule) lua_util.debugm(N, rspamd_config, "loaded map object for rule %s", rule['symbol']) local known_symbols = {} rule.map_obj:foreach(function(key, value) - local r,symbol,score,_opts = parse_multimap_value(rule, value) + local r,symbol,score,_ = parse_multimap_value(rule, value) if r and symbol and not known_symbols[symbol] then lua_util.debugm(N, rspamd_config, "%s: adding new symbol %s (score = %s), triggered by %s",