From e8366d156e09eba81ae38f57c41c74ec203c27bc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 29 May 2018 16:58:54 +0100 Subject: [Minor] Rework config load routines --- lualib/rspamadm/corpus_test.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lualib/rspamadm') diff --git a/lualib/rspamadm/corpus_test.lua b/lualib/rspamadm/corpus_test.lua index 59b02f649..60aa2d7a9 100644 --- a/lualib/rspamadm/corpus_test.lua +++ b/lualib/rspamadm/corpus_test.lua @@ -74,16 +74,16 @@ local function encoded_json_to_log(result) -- Returns table containing score, action, list of symbols local filtered_result = {} - local parser = ucl.parser() + local ucl_parser = ucl.parser() - local is_good, err = parser:parse_string(result) + local is_good, err = ucl_parser:parse_string(result) if not is_good then rspamd_logger.errx("Parser error: %1", err) return nil end - result = parser:get_object() + result = ucl_parser:get_object() filtered_result.score = result.score if not result.action then -- cgit v1.2.3