From f1f2f27585576a2b37e0c1d7440f4dece0b58a59 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 14 Jun 2021 14:12:20 +0100 Subject: [PATCH] [Minor] Pet luacheck --- rules/html.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/rules/html.lua b/rules/html.lua index 84ef91606..852be8168 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -182,7 +182,6 @@ local vis_check_id = rspamd_config:register_symbol{ --local logger = require "rspamd_logger" local tp = task:get_text_parts() -- get text parts in a message local ret = false - local diff = 0.0 local transp_rate = 0 local invisible_blocks = 0 local zero_size_blocks = 0 @@ -198,7 +197,6 @@ local vis_check_id = rspamd_config:register_symbol{ hc:foreach_tag({'font', 'span', 'div', 'p', 'td'}, function(tag, clen, is_leaf) local bl = tag:get_style() - local rspamd_logger = require "rspamd_logger" if bl then if not bl.visible and is_leaf then invisible_blocks = invisible_blocks + 1 -- 2.39.5