From: Vsevolod Stakhov Date: Thu, 15 Aug 2024 16:55:19 +0000 (+0100) Subject: [Minor] Sime minor changes X-Git-Tag: 3.10.0~37^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6155385f69769bf04832ad3708849ab5cd054322;p=thirdparty%2Frspamd.git [Minor] Sime minor changes --- diff --git a/lualib/lua_cfg_transform.lua b/lualib/lua_cfg_transform.lua index b928cd88a3..43487ea529 100644 --- a/lualib/lua_cfg_transform.lua +++ b/lualib/lua_cfg_transform.lua @@ -188,7 +188,7 @@ return function(cfg) local action_score local act = actions:at(d) - if act:type() == 'number' then + if act:type() ~= 'object' then action_score = act:unwrap() elseif act:type() == 'object' and act:at('score') then action_score = act:at('score'):unwrap() @@ -232,7 +232,7 @@ return function(cfg) for i = 1, (#actions_order - 1) do local act = actions_order[i] - if actions:at(act) and actions:at(act):type() == 'number' then + if actions:at(act) and actions:at(act):type() ~= 'object' then local score = actions:at(act):unwrap() for j = i + 1, #actions_order do