From 2f53d33e7a66646620db924111d125dd9cdc310d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 3 Oct 2025 19:22:18 +0000 Subject: [PATCH] Fix: Return early in check_quantity_received to avoid unnecessary checks Co-authored-by: v --- 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 5c5ff7986d..7c56ac7117 100644 --- a/src/plugins/lua/once_received.lua +++ b/src/plugins/lua/once_received.lua @@ -88,7 +88,7 @@ local function check_quantity_received (task) for _, h in ipairs(bad_hosts) do if string.find(hn, h) then task:insert_result(symbol_strict, 1, h) - break + return end end end -- 2.47.3