From: AL Date: Sun, 13 Nov 2016 11:39:11 +0000 (+0300) Subject: Fix if-else condition X-Git-Tag: 1.4.0~78^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4cfb22716f09aa901aaa046fffa5d8c202edf9c1;p=rspamd.git Fix if-else condition --- 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