From a9f5845edaf3f1293df3a5ecc222fb5b10bf016a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 24 Mar 2017 09:52:16 +0000 Subject: [Minor] Remove all get_api_version calls --- src/lua/lua_task.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/lua') diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 711708335..43b6b281e 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -31,13 +31,11 @@ * and add the corresponding symbols to the scan's results. @example rspamd_config.DATE_IN_PAST = function(task) - if rspamd_config:get_api_version() >= 5 then local dm = task:get_date{format = 'message', gmt = true} local dt = task:get_date{format = 'connect', gmt = true} - -- A day - if dt - dm > 86400 then - return true - end + -- A day + if dt - dm > 86400 then + return true end return false -- cgit v1.2.3