From 662145d0554de5e769b92dab2d41173a98adcee5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 7 Aug 2023 11:41:28 +0100 Subject: [Minor] Reformat all Lua code, no functional changes --- rules/controller/fuzzy.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rules/controller/fuzzy.lua') diff --git a/rules/controller/fuzzy.lua b/rules/controller/fuzzy.lua index 7e4c96fe1..193e6fd4c 100644 --- a/rules/controller/fuzzy.lua +++ b/rules/controller/fuzzy.lua @@ -19,16 +19,16 @@ local function handle_gen_fuzzy(task, conn, req_params) local ret, hashes task:process_message() if req_params.rule then - ret,hashes = pcall(rspamd_plugins.fuzzy_check.hex_hashes, task, req_params.rule) + ret, hashes = pcall(rspamd_plugins.fuzzy_check.hex_hashes, task, req_params.rule) elseif req_params.flag then - ret,hashes = pcall(rspamd_plugins.fuzzy_check.hex_hashes, task, tonumber(req_params.flag)) + ret, hashes = pcall(rspamd_plugins.fuzzy_check.hex_hashes, task, tonumber(req_params.flag)) else conn:send_error(404, 'missing rule or flag') return end if ret then - conn:send_ucl({success = true, hashes = hashes}) + conn:send_ucl({ success = true, hashes = hashes }) else conn:send_error(500, 'cannot generate hashes') end -- cgit v1.2.3