Skip to content

Commit e933c65

Browse files
committed
Remove defensive checks
1 parent 58e3529 commit e933c65

3 files changed

Lines changed: 0 additions & 9 deletions

File tree

sync_ai_rules/__main__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"""
55

66
import os
7-
import sys
87
from pathlib import Path
98
from typing import Dict, List
109

@@ -73,10 +72,6 @@ def main():
7372
plugin_manager = PluginManager()
7473
plugin_manager.load_plugins(script_dir)
7574

76-
if not plugin_manager.pipelines:
77-
print("Error: No pipelines configured")
78-
sys.exit(1)
79-
8075
# Get target files (all generators use same files)
8176
first_generator = plugin_manager.pipelines[0].generator
8277
output_files = [

sync_ai_rules/generators/code_review_guidelines_generator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ def generate(self, rules: Dict[str, List[RuleMetadata]], config: Dict[str, Any])
3131

3232
for category in sorted_categories:
3333
category_rules = rules[category]
34-
if not category_rules:
35-
continue
3634

3735
# Add category heading if there are multiple categories
3836
if len(sorted_categories) > 1:

sync_ai_rules/generators/development_rules_generator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ def generate(self, rules: Dict[str, List[RuleMetadata]], config: Dict[str, Any])
4040

4141
for category in sorted_categories:
4242
category_rules = rules[category]
43-
if not category_rules:
44-
continue
4543

4644
# Add category heading
4745
heading = self._format_heading(category)

0 commit comments

Comments
 (0)