]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Silence warning 1494/head
authorAndrew Lewis <nerf@judo.za.org>
Tue, 7 Mar 2017 12:18:10 +0000 (14:18 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 7 Mar 2017 12:18:10 +0000 (14:18 +0200)
rules/misc.lua

index 151500d886ba990fb115084dcde9b5413919fb5e..5abc2e821073b74a808dc3b579501aa724a22148 100644 (file)
@@ -747,9 +747,7 @@ local check_mime_id = rspamd_config:register_callback_symbol('CHECK_MIME', 1.0,
     end
 
     if missing_mime then
-      if not found_ma and ((found_plain or found_html) and cte_7bit) then
-        -- Skip symbol insertion
-      else
+      if not (not found_ma and ((found_plain or found_html) and cte_7bit)) then
         task:insert_result('MISSING_MIME_VERSION', 1.0)
       end
     end