From: Vsevolod Stakhov Date: Thu, 28 Aug 2025 15:44:09 +0000 (+0100) Subject: [Minor] Pet luacheck X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5579%2Fhead;p=thirdparty%2Frspamd.git [Minor] Pet luacheck --- diff --git a/rules/controller/neural.lua b/rules/controller/neural.lua index 13530beffe..9fc9c567e8 100644 --- a/rules/controller/neural.lua +++ b/rules/controller/neural.lua @@ -149,7 +149,7 @@ local function handle_config(task, conn, req_params) end end - for sid, set in pairs(rule.settings or {}) do + for _, set in pairs(rule.settings or {}) do if type(set) == 'table' then r.settings[#r.settings + 1] = set.name end @@ -278,7 +278,6 @@ local function handle_learn_message(task, conn) providers_digest = neural_common.providers_config_digest(rule.providers), } - local ucl = require "ucl" local profile_serialized = ucl.to_format(profile, 'json-compact', true) lua_util.debugm(N, task, 'controller.neural: creating new profile for %s:%s at %s',