Skip to content

Commit

Permalink
[Minor] Pet luacheck
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Jun 14, 2021
1 parent ea35232 commit f1f2f27
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rules/html.lua
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f1f2f27

Please sign in to comment.