diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-14 13:45:39 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-14 13:45:39 +0000 |
commit | a32bcc60f1e80fa3d351ae0a050b5fc13f48dc5a (patch) | |
tree | e596104e7b215c18497f9424a2ef4945185ee32f /src/libstat | |
parent | 77d8fb13d64763071febb3980c016c5f4976b70d (diff) | |
download | rspamd-a32bcc60f1e80fa3d351ae0a050b5fc13f48dc5a.tar.gz rspamd-a32bcc60f1e80fa3d351ae0a050b5fc13f48dc5a.zip |
[Minor] Avoid using of the cached result
Diffstat (limited to 'src/libstat')
-rw-r--r-- | src/libstat/stat_process.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index e09673783..2284907a1 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -1122,9 +1122,7 @@ rspamd_stat_check_autolearn (struct rspamd_task *task) if (mres) { - if (mres->action == METRIC_ACTION_MAX) { - mres->action = rspamd_check_action_metric (task, mres); - } + mres->action = rspamd_check_action_metric (task, mres); if (mres->score > rspamd_task_get_required_score (task, mres)) { task->flags |= RSPAMD_TASK_FLAG_LEARN_SPAM; |