From 4cfb22716f09aa901aaa046fffa5d8c202edf9c1 Mon Sep 17 00:00:00 2001 From: AL Date: Sun, 13 Nov 2016 14:39:11 +0300 Subject: [PATCH] Fix if-else condition --- src/plugins/lua/greylist.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index f3667177c..35c30b806 100644 --- a/src/plugins/lua/greylist.lua +++ b/src/plugins/lua/greylist.lua @@ -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 -- 2.39.5