]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Further simplify conditionals 1126/head
authorAL <AlexeySa@users.noreply.github.com>
Sun, 13 Nov 2016 16:13:11 +0000 (19:13 +0300)
committerGitHub <noreply@github.com>
Sun, 13 Nov 2016 16:13:11 +0000 (19:13 +0300)
[Minor] Further simplify conditionals

src/plugins/lua/greylist.lua

index 35c30b806bb304db05f7d1f0fb8b44f9e463bdac..abe1a7d6927469cbc78dd5de669cfa8e052f42af 100644 (file)
@@ -323,7 +323,7 @@ local function greylist_set(task)
      rspamd_logger.infox(task, 'got error while connecting to redis: %1', upstream:get_addr())
      upstream:fail()
     end
-  elseif do_greylisting or (do_greylisting_required and do_greylisting_required == "1") then
+  elseif do_greylisting or do_greylisting_required then
     local t = tostring(math.floor(rspamd_util.get_time()))
     local end_time = rspamd_util.time_to_string(t + settings['timeout'])
     rspamd_logger.infox(task, 'greylisted until "%s", new record', end_time)