From 9a1efa09bc86b12a16c518e17da89a220cee497d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 28 Aug 2025 16:44:09 +0100 Subject: [PATCH] [Minor] Pet luacheck --- rules/controller/neural.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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', -- 2.47.3