From: Vsevolod Stakhov Date: Thu, 18 Nov 2021 11:48:45 +0000 (+0000) Subject: [Minor] Per luacheck when I'm here X-Git-Tag: 3.2~251 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2dfc078e1ef086c205c715254087b20c6755840a;p=rspamd.git [Minor] Per luacheck when I'm here --- 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)