Skip to content

Commit

Permalink
fix(afterfact): modified output format from "-" str to empty Dict in …
Browse files Browse the repository at this point in the history
…Details #1386
  • Loading branch information
hitenkoku committed Jul 25, 2024
1 parent 63980ee commit a476526
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a476526

Please sign in to comment.