]> source.dussan.org Git - rspamd.git/commitdiff
Fix if-else condition 1123/head
authorAL <AlexeySa@users.noreply.github.com>
Sun, 13 Nov 2016 11:39:11 +0000 (14:39 +0300)
committerGitHub <noreply@github.com>
Sun, 13 Nov 2016 11:39:11 +0000 (14:39 +0300)
src/plugins/lua/greylist.lua

index f3667177cbfa6967a809858cb1665faae555cbff..35c30b806bb304db05f7d1f0fb8b44f9e463bdac 100644 (file)
@@ -276,7 +276,8 @@ local function greylist_set(task)
 
   local action = task:get_metric_action('default')
   if action == 'reject' then return end
-  if do_greylisting_required and do_greylisting_required ~= "1" then return end
+  if do_greylisting_required and do_greylisting_required ~= "1" then
+    return
   else
     if action == 'no action' then return end
   end