aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/ratelimit.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-09-13 15:01:52 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-09-13 15:01:52 +0200
commit7e190225f823e3d3d216627a47fca90b9b55d309 (patch)
treed2d2b7980bbf1ece332c9e558a0f806d0cef01af /src/plugins/lua/ratelimit.lua
parent658a9a5634fa5b432d87a8ed68b2170a6fbb03bc (diff)
downloadrspamd-7e190225f823e3d3d216627a47fca90b9b55d309.tar.gz
rspamd-7e190225f823e3d3d216627a47fca90b9b55d309.zip
[Minor] Remove more useless code from ratelimit
Diffstat (limited to 'src/plugins/lua/ratelimit.lua')
-rw-r--r--src/plugins/lua/ratelimit.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/lua/ratelimit.lua b/src/plugins/lua/ratelimit.lua
index 67fd51aba..35b0a6cac 100644
--- a/src/plugins/lua/ratelimit.lua
+++ b/src/plugins/lua/ratelimit.lua
@@ -162,8 +162,6 @@ local function dynamic_rate_key(task, rtype)
for _, v in ipairs(key_keywords) do
if (custom_keywords[v] and type(custom_keywords[v]['condition']) == 'function') then
if not custom_keywords[v]['condition']() then return nil end
- elseif (keywords[v] and type(keywords[v]['condition']) == 'function') then
- if not keywords[v]['condition']() then return nil end
end
local ret
if custom_keywords[v] and type(custom_keywords[v]['get_value']) == 'function' then