]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove assertions as sometimes neural exists without settings...
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Dec 2020 17:59:57 +0000 (17:59 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 30 Dec 2020 17:59:57 +0000 (17:59 +0000)
lualib/lua_settings.lua

index bf68267491eaf57675d560659db6315c43989ad2..b645e5c4aa1cac1223d70a64eb3afff38ed86c00 100644 (file)
@@ -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()