]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Silence warning
authorAndrew Lewis <nerf@judo.za.org>
Tue, 19 Sep 2017 08:58:36 +0000 (10:58 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 19 Sep 2017 08:58:36 +0000 (10:58 +0200)
src/plugins/lua/fann_redis.lua

index ab3da003505e4e7727d04566779d2f511d235b4c..42e05f1acbbc721bce2a1e8c11de58b4ccc545da 100644 (file)
@@ -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