commit f1f2f27: [Minor] Pet luacheck

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jun 14 13:14:08 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-06-14 14:12:20 +0100
URL: https://github.com/rspamd/rspamd/commit/f1f2f27585576a2b37e0c1d7440f4dece0b58a59 (HEAD -> master)

[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


More information about the Commits mailing list