From a47652633b223e0d37bd53743496aef3886360a2 Mon Sep 17 00:00:00 2001 From: DastInDark <2350416+hitenkoku@users.noreply.github.com> Date: Thu, 25 Jul 2024 23:54:08 +0900 Subject: [PATCH] fix(afterfact): modified output format from "-" str to empty Dict in Details #1386 --- src/afterfact.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/afterfact.rs b/src/afterfact.rs index 37541b5ea..97f9d2eb7 100644 --- a/src/afterfact.rs +++ b/src/afterfact.rs @@ -1908,13 +1908,7 @@ pub fn output_json_str( let mut children_output_order = vec![]; if detect_info.agg_result.is_some() { if details_target_stock[0] == "-" { - output_stock.push(_create_json_output_format( - key, - details_target_stock[0].as_str(), - key.starts_with('\"'), - details_target_stock[0].starts_with('\"'), - 4, - )); + output_stock.push(format!("{}\"{}\": {{}}", " ".repeat(4), key)); if jsonl_output_flag { target.push(output_stock.join("")); } else {