aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-11-06 13:56:56 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-11-06 13:56:56 +0000
commit6cca898932e253ec26d1022178b7394348286121 (patch)
tree2bbde5a647d41e274a3d120e4eec547765324d18 /rules
parent0c3e5ce444c31e286855eef2752ce597206a44d5 (diff)
downloadrspamd-6cca898932e253ec26d1022178b7394348286121.tar.gz
rspamd-6cca898932e253ec26d1022178b7394348286121.zip
[Minor] Fix optionality
Diffstat (limited to 'rules')
-rw-r--r--rules/rspamd.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/rspamd.lua b/rules/rspamd.lua
index 3b80a035a..e41a946cb 100644
--- a/rules/rspamd.lua
+++ b/rules/rspamd.lua
@@ -51,7 +51,7 @@ else
end
end
-for local_lua in rspamd_util.glob(local_conf .. '/lua.local.d/*.lua') do
+for _, local_lua in ipairs(rspamd_util.glob(local_conf .. '/lua.local.d/*.lua') or {}) do
dofile(local_lua)
end