From: yo Date: Sun, 13 Nov 2022 15:42:44 +0000 (+0100) Subject: Removes useless index X-Git-Tag: 3.5~213^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4334%2Fhead;p=thirdparty%2Frspamd.git Removes useless index --- diff --git a/src/plugins/lua/metadata_exporter.lua b/src/plugins/lua/metadata_exporter.lua index e011c56a91..6c4cf00190 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