From: Vsevolod Stakhov Date: Thu, 19 Jul 2018 11:51:48 +0000 (+0100) Subject: [Minor] Pet luacheck X-Git-Tag: 1.7.9~83 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a2496b33224e3404fe93475340216d0843b92030;p=rspamd.git [Minor] Pet luacheck --- diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index 5bc6e9581..454ec7ef0 100644 --- a/src/plugins/lua/elastic.lua +++ b/src/plugins/lua/elastic.lua @@ -89,9 +89,9 @@ local function elastic_send_data(task) h:update(bulk_json) local key = settings['key_prefix'] ..es_index..":".. h:base32():sub(1, 20) local data = util.zstd_compress(bulk_json) - local function redis_set_cb(err) - if err ~=nil then - rspamd_logger.errx(task, 'redis_set_cb received error: %1', err) + local function redis_set_cb(rerr) + if rerr ~=nil then + rspamd_logger.errx(task, 'redis_set_cb received error: %1', rerr) end end rspamd_redis.make_request(task, @@ -285,10 +285,10 @@ local function initial_setup(cfg, ev_base, worker) local kibana_mappings = read_file(settings['kibana_file']) if kibana_mappings then local parser = ucl.parser() - local res,err = parser:parse_string(kibana_mappings) + local res,parser_err = parser:parse_string(kibana_mappings) if not res then rspamd_logger.infox(rspamd_config, 'kibana template cannot be parsed: %s', - err) + parser_err) enabled = false return