From: Vsevolod Stakhov Date: Mon, 14 Jun 2021 13:12:20 +0000 (+0100) Subject: [Minor] Pet luacheck X-Git-Tag: 3.0~304 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f1f2f27585576a2b37e0c1d7440f4dece0b58a59;p=rspamd.git [Minor] Pet luacheck --- 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