commit 0cad338: [Minor] Remove unused variable

Vsevolod Stakhov vsevolod at rspamd.com
Thu Oct 27 21:56:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-10-27 22:55:32 +0100
URL: https://github.com/rspamd/rspamd/commit/0cad33873c08a0f680140296c6eb5d742ef7f118 (HEAD -> master)

[Minor] Remove unused variable

---
 src/plugins/lua/once_received.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/once_received.lua b/src/plugins/lua/once_received.lua
index c3a542dea..aa17315ef 100644
--- a/src/plugins/lua/once_received.lua
+++ b/src/plugins/lua/once_received.lua
@@ -41,7 +41,7 @@ local check_authed = false
 local function check_quantity_received (task)
   local recvh = task:get_received_headers()
 
-  local nreceived = fun.reduce(function(acc, rcvd)
+  local nreceived = fun.reduce(function(acc, _)
     return acc + 1
   end, 0, fun.filter(function(h)
     return not h['artificial']


More information about the Commits mailing list