From c45aaab61f20780e889a8e79d03c9eca23d7f4d6 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Sun, 13 Nov 2016 13:13:47 +0200 Subject: [Minor] Some linting for rules --- rules/html.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'rules/html.lua') diff --git a/rules/html.lua b/rules/html.lua index a5f861b2d..bedf0cc61 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -14,8 +14,6 @@ -- limitations under the License. local reconf = config['regexp'] -local rspamd_regexp = require "rspamd_regexp" -local rspamd_logger = require "rspamd_logger" -- Messages that have only HTML part reconf['MIME_HTML_ONLY'] = { @@ -184,7 +182,7 @@ rspamd_config.R_WHITE_ON_WHITE = { normal_len = p:get_length() local hc = p:get_html() -- we get HTML context - hc:foreach_tag({'font', 'span', 'div', 'p'}, function(tag, len) + hc:foreach_tag({'font', 'span', 'div', 'p'}, function(tag, _) local bl = tag:get_extra() if bl then if bl['bgcolor'] and bl['color'] and bl['visible'] then @@ -208,8 +206,6 @@ rspamd_config.R_WHITE_ON_WHITE = { color[1], color[2], color[3], bgcolor[1], bgcolor[2], bgcolor[3]) end - else - end end end -- cgit v1.2.3