]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Silence warnings
authorAndrew Lewis <nerf@judo.za.org>
Fri, 24 Mar 2017 21:06:39 +0000 (23:06 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Fri, 24 Mar 2017 21:06:39 +0000 (23:06 +0200)
.luacheckrc
rules/headers_checks.lua

index 96867e4e61c79a3919204cc5901fcf1ccdf4de31..26d3d07ce4c03d986da7987ff4b711d09ccde3c2 100644 (file)
@@ -27,6 +27,7 @@ globals = {
 
 ignore = {
   '212', -- unused argument
+  '612', -- trailing whitespace
   '631', -- line is too long
 }
 
index 7e345b95a678116f8ef09d2e9f880654833196ce..17a0c738f58ca00b97d6bc7770f0f71cd01aaa4a 100644 (file)
@@ -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