commit 99b8ded: Removes useless index

yo johan at nosd.in
Sun Nov 13 20:49:05 UTC 2022


Author: yo
Date: 2022-11-13 16:42:44 +0100
URL: https://github.com/rspamd/rspamd/commit/99b8dedea11f9ecab58ccd6bd6274194450c2d57 (refs/pull/4334/head)

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


More information about the Commits mailing list