commit a943931: [Minor] Remove assertions as sometimes neural exists without settings...

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Dec 30 18:07:08 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-12-30 17:59:57 +0000
URL: https://github.com/rspamd/rspamd/commit/a94393193e8859bbdcea0d553e4a946bd5e69a1c (HEAD -> master)

[Minor] Remove assertions as sometimes neural exists without settings...

---
 lualib/lua_settings.lua | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/lualib/lua_settings.lua b/lualib/lua_settings.lua
index bf6826749..b645e5c4a 100644
--- a/lualib/lua_settings.lua
+++ b/lualib/lua_settings.lua
@@ -32,10 +32,6 @@ local lua_util = require "lua_util"
 local rspamd_logger = require "rspamd_logger"
 
 local function register_settings_cb(from_postload)
-  if not from_postload then
-    assert(false, 'invalid invocation')
-  end
-
   if not post_init_performed then
     all_symbols = rspamd_config:get_symbols()
 


More information about the Commits mailing list