From 6565be5ee68f371c613f805c8934073f8ec0f76c Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 24 Mar 2017 23:06:39 +0200 Subject: [PATCH] [Minor] Silence warnings --- .luacheckrc | 1 + rules/headers_checks.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.luacheckrc b/.luacheckrc index 96867e4e6..26d3d07ce 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -27,6 +27,7 @@ globals = { ignore = { '212', -- unused argument + '612', -- trailing whitespace '631', -- line is too long } diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua index 7e345b95a..17a0c738f 100644 --- a/rules/headers_checks.lua +++ b/rules/headers_checks.lua @@ -599,7 +599,7 @@ local check_from_id = rspamd_config:register_symbol{ if (util.strequal_caseless(to[1].addr, from[1].addr)) then task:insert_result('TO_EQ_FROM', 1.0) elseif (to[1].domain and from[1].domain and - util.strequal_caseless(to[1].domain, from[1].domain)) + util.strequal_caseless(to[1].domain, from[1].domain)) then task:insert_result('TO_DOM_EQ_FROM_DOM', 1.0) end -- 2.39.5