From 467810317cdbd95a14f11837104132456d2d81ae Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Tue, 19 Sep 2017 10:58:36 +0200 Subject: [PATCH] [Minor] Silence warning --- src/plugins/lua/fann_redis.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/lua/fann_redis.lua b/src/plugins/lua/fann_redis.lua index ab3da0035..42e05f1ac 100644 --- a/src/plugins/lua/fann_redis.lua +++ b/src/plugins/lua/fann_redis.lua @@ -1006,9 +1006,7 @@ local function check_fanns(rule, _, ev_base) elseif _data and type(_data) == 'table' then load_or_invalidate_fann(rule, _data, elt, ev_base) else - if type(_data) == 'number' then - -- no new version - else + if type(_data) ~= 'number' then rspamd_logger.errx(rspamd_config, 'invalid ANN type returned from Redis: %s; prefix: %s', type(_data), elt) end -- 2.39.5