summaryrefslogtreecommitdiffstats
path: root/lualib/lua_selectors/init.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-11-22 23:41:33 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-11-22 23:41:33 +0000
commit5858739fec90975fb2067374b06999dc8344597d (patch)
tree98676be6714d6e55fcc450afbb95c16124ecefbc /lualib/lua_selectors/init.lua
parente6d344ee0610f4331067cdcaa7fc76ffa99c5eaf (diff)
downloadrspamd-5858739fec90975fb2067374b06999dc8344597d.tar.gz
rspamd-5858739fec90975fb2067374b06999dc8344597d.zip
[Minor] Fix tests and invocation
Diffstat (limited to 'lualib/lua_selectors/init.lua')
-rw-r--r--lualib/lua_selectors/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_selectors/init.lua b/lualib/lua_selectors/init.lua
index 6dec5ea7f..01b43756a 100644
--- a/lualib/lua_selectors/init.lua
+++ b/lualib/lua_selectors/init.lua
@@ -580,7 +580,7 @@ exports.create_selector_closure_fn = function(log_obj, cfg, selector_str, delimi
local res = exports.process_selectors(task, selector)
if res then
- fn(log_obj, res, delimiter)
+ return fn(log_obj, res, delimiter)
end
return nil