]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Satisfy luacheck 5841/head
authorAndrew Lewis <nerf@judo.za.org>
Thu, 15 Jan 2026 12:29:07 +0000 (14:29 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Thu, 15 Jan 2026 12:29:07 +0000 (14:29 +0200)
lualib/lua_bayes_redis.lua

index 0a0b5d07714bb24dfe69e7a741b390fc2d1cfbcb..91466af6a06be85230b79ca78755468295ee5069 100644 (file)
@@ -143,21 +143,21 @@ exports.lua_bayes_init_statfile = function(classifier_ucl, statfile_ucl, symbol,
     return nil
   end
 
-  local classify_script_id, err = lua_redis.load_redis_script_from_file("bayes_classify.lua", redis_params)
+  local classify_script_id, script_err = lua_redis.load_redis_script_from_file("bayes_classify.lua", redis_params)
   if not classify_script_id then
-    logger.errx(ev_base, err)
+    logger.errx(ev_base, script_err)
     return nil
   end
   local learn_script_id
-  learn_script_id, err = lua_redis.load_redis_script_from_file("bayes_learn.lua", redis_params)
+  learn_script_id, script_err = lua_redis.load_redis_script_from_file("bayes_learn.lua", redis_params)
   if not learn_script_id then
-    logger.errx(ev_base, err)
+    logger.errx(ev_base, script_err)
     return nil
   end
   local stat_script_id
-  stat_script_id, err = lua_redis.load_redis_script_from_file("bayes_stat.lua", redis_params)
+  stat_script_id, script_err = lua_redis.load_redis_script_from_file("bayes_stat.lua", redis_params)
   if not stat_script_id then
-    logger.errx(ev_base, err)
+    logger.errx(ev_base, script_err)
     return nil
   end
   local max_users = classifier_ucl.max_users or 1000