Skip to content

Commit dbdd61e

Browse files
committed
fix: overwritten author list
1 parent d01e72a commit dbdd61e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/afterfact.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -522,10 +522,9 @@ fn calc_statistic_info(
522522
let level_suffix = get_level_suffix(detect_info.level.as_str());
523523
let author_list = extract_author_name(&detect_info.ruleauthor);
524524
let author_str = author_list.iter().join(", ");
525-
afterfact_info.detect_rule_authors.insert(
526-
detect_info.ruleid.to_owned(),
527-
author_str.to_string().into(),
528-
);
525+
afterfact_info
526+
.detect_rule_authors
527+
.insert(detect_info.ruleid.to_owned(), author_str.to_string().into());
529528

530529
if author_str != "-"
531530
&& !afterfact_info

0 commit comments

Comments
 (0)