Skip to content

Commit b372908

Browse files
committed
Remove multiple categories conditional
1 parent 2aeddf1 commit b372908

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

sync_ai_rules/generators/code_review_guidelines_generator.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ def generate(self, rules: Dict[str, List[RuleMetadata]], config: Dict[str, Any])
3636
for category in sorted_categories:
3737
category_rules = rules[category]
3838

39-
# Add category heading if there are multiple categories
40-
if len(sorted_categories) > 1:
41-
heading = self._format_heading(category)
42-
lines.append(f"### {heading}")
43-
lines.append("")
39+
# Add category heading
40+
heading = self._format_heading(category)
41+
lines.append(f"### {heading}")
42+
lines.append("")
4443

4544
# Add each rule
4645
for rule in self._sort_rules_by_title(category_rules):

0 commit comments

Comments
 (0)