From 99b8dedea11f9ecab58ccd6bd6274194450c2d57 Mon Sep 17 00:00:00 2001 From: yo Date: Sun, 13 Nov 2022 16:42:44 +0100 Subject: [PATCH] Removes useless index --- src/plugins/lua/metadata_exporter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua index e011c56a9..6c4cf0019 100644 --- a/src/plugins/lua/metadata_exporter.lua +++ b/src/plugins/lua/metadata_exporter.lua @@ -306,7 +306,7 @@ local pushers = { rspamd_logger.errx(task, 'got error %s in http callback', err) return maybe_defer(task, rule) end - for i, v in ipairs(valid_status) do + for _, v in ipairs(valid_status) do if v == code then return true end -- 2.39.5