From 2dfc078e1ef086c205c715254087b20c6755840a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 18 Nov 2021 11:48:45 +0000 Subject: [PATCH] [Minor] Per luacheck when I'm here --- src/plugins/lua/neural.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua index 36eb9adaf..43b4af45d 100644 --- a/src/plugins/lua/neural.lua +++ b/src/plugins/lua/neural.lua @@ -120,7 +120,7 @@ local function ann_scores_filter(task) if score > 0 then local result = score - + -- If spam_score_threshold is defined, override all other thresholds. local spam_threshold = 0 if rule.spam_score_threshold then @@ -506,7 +506,7 @@ local function load_new_ann(rule, ev_base, set, profile, min_diff) assert(ok, parse_err) local roc_thresholds = parser:get_object() set.ann.roc_thresholds = roc_thresholds - rspamd_logger.infox(rspamd_config, + rspamd_logger.infox(rspamd_config, 'loaded ROC thresholds for %s:%s; version=%s', rule.prefix, set.name, profile.version) rspamd_logger.debugx("ROC thresholds: %s", roc_thresholds) -- 2.39.5