From ddc8561f295d13f1d5274a4e5ef0c8e95fcc6d1f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 9 Mar 2018 12:16:30 +0000 Subject: [PATCH] [Minor] Silence bloody luacheck --- src/plugins/lua/elastic.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/elastic.lua b/src/plugins/lua/elastic.lua index a344a4bb7..3fa73c022 100644 --- a/src/plugins/lua/elastic.lua +++ b/src/plugins/lua/elastic.lua @@ -207,10 +207,10 @@ local function check_elastic_server(cfg, ev_base, _) local function http_callback(_, err, body, _) if err == 200 then local parser = ucl.parser() - local res,err = parser:parse_string(body) + local res,ucl_err = parser:parse_string(body) if not res then rspamd_logger.infox(rspamd_config, 'failed to parse reply from %s: %s', - plugins_url, err) + plugins_url, ucl_err) enabled = false; return end -- 2.39.5