aboutsummaryrefslogtreecommitdiffstats
path: root/rules/html.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-14 14:12:20 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-14 14:12:20 +0100
commitf1f2f27585576a2b37e0c1d7440f4dece0b58a59 (patch)
treeffb0738648ef149827937d55ed90306ae2339beb /rules/html.lua
parentea35232b982f8ab4b3af5f286575c30780256168 (diff)
downloadrspamd-f1f2f27585576a2b37e0c1d7440f4dece0b58a59.tar.gz
rspamd-f1f2f27585576a2b37e0c1d7440f4dece0b58a59.zip
[Minor] Pet luacheck
Diffstat (limited to 'rules/html.lua')
-rw-r--r--rules/html.lua2
1 files changed, 0 insertions, 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