From 6125b6ffe96af76302b5ca7ae363b4d16a026574 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 14 Nov 2025 20:57:01 +0000 Subject: [PATCH] [Fix] Remove shadowing of rspamd_logger in rules/misc.lua - Fixes luacheck W431 warning (shadowing upvalue) - rspamd_logger already required at module level (line 24) - Remove redundant local require inside function --- rules/misc.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/rules/misc.lua b/rules/misc.lua index 14967ec691..5f2725c5c2 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -815,7 +815,6 @@ local rnds_check_id = rspamd_config:register_symbol { -- Try to resolve local task_ip = task:get_ip() if task_ip and task_ip:is_valid() then - local rspamd_logger = require "rspamd_logger" local function rdns_dns_cb(_, to_resolve, results, err) if err and (err ~= 'requested record is not found' and err ~= 'no records with this name') then rspamd_logger.errx(task, 'error looking up %s: %s', to_resolve, err) -- 2.47.3