From 0cad33873c08a0f680140296c6eb5d742ef7f118 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 27 Oct 2022 22:55:32 +0100 Subject: [PATCH] [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'] -- 2.39.5