diff options
author | Andrew Lewis <nerf@judo.za.org> | 2016-11-13 13:13:47 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2016-11-13 13:13:47 +0200 |
commit | c45aaab61f20780e889a8e79d03c9eca23d7f4d6 (patch) | |
tree | a87605856dded7ba943ffbd4325751e6e3c8bce7 /rules/html.lua | |
parent | 3a145180bc1398ab06f25fee22baa9cd8757caa3 (diff) | |
download | rspamd-c45aaab61f20780e889a8e79d03c9eca23d7f4d6.tar.gz rspamd-c45aaab61f20780e889a8e79d03c9eca23d7f4d6.zip |
[Minor] Some linting for rules
Diffstat (limited to 'rules/html.lua')
-rw-r--r-- | rules/html.lua | 6 |
1 files changed, 1 insertions, 5 deletions
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 |