commit 8f8d62f: [Minor] Pet luacheck

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jul 1 11:56:07 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-07-01 12:52:39 +0100
URL: https://github.com/rspamd/rspamd/commit/8f8d62fc0dd10f50a340386f324b31b20f84796b (HEAD -> master)

[Minor] Pet luacheck

---
 rules/controller/maps.lua | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rules/controller/maps.lua b/rules/controller/maps.lua
index be93e0a6d..f21b34c24 100644
--- a/rules/controller/maps.lua
+++ b/rules/controller/maps.lua
@@ -38,14 +38,15 @@ local function maybe_fill_maps_cache()
           -- Do not override, as we don't care about duplicate maps that come from different
           -- sources.
           -- In theory, that should be cached but there are some exceptions even so far...
+          url = math.random() -- to shut luacheck about empty branch with a comment
         end
       end
     end
   end
 end
 
-local function check_specific_map(value, uri, m, results)
-  local value = m:get_key(value)
+local function check_specific_map(input, uri, m, results)
+  local value = m:get_key(input)
 
   if value then
     local result = {


More information about the Commits mailing list