]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix lua lint
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 24 Nov 2016 12:31:04 +0000 (12:31 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 24 Nov 2016 12:31:04 +0000 (12:31 +0000)
.luacheckrc
src/lua/global_functions.lua

index 7b25cd5c1dbb8ed389d74fb301baf87f9efe2beb..de7cbb71efa29a572dd6e4a3822dc1e88495ab46 100644 (file)
@@ -22,6 +22,7 @@ globals = {
   'rspamd_redis_make_request',
   'rspamd_str_split',
   'rspamd_version',
+  'rspamd_map_add',
 }
 
 ignore = {
index d3b84b4ea18bf1f62bc6270bf71fc6bb86071386..8c0514d94e068d08a03227fcc6afb088bfa602ce 100644 (file)
@@ -446,7 +446,6 @@ function rspamd_map_add(mname, optname, mtype, description)
             if re then
               table.insert(data, re)
             else
-              local logger = require "rspamd_logger"
               logger.errx(rspamd_config, "cannot create regexp from '%s'", elt)
             end
           end