Skip to content

Commit

Permalink
chore: Unbound variable
Browse files Browse the repository at this point in the history
  • Loading branch information
niliayu committed Dec 6, 2024
1 parent 080e763 commit ec02087
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/lib/sift_py/rule/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,12 @@ def load_rules_from_yaml(
for namespace, rule_yamls in namespaced_rules.items():
for rule_yaml in rule_yamls:
yaml_channel_references = rule_yaml.get("channel_references", [])
arg_channel_references = None

if channel_references:
for channel_map in channel_references:
if channel_map.fully_qualified_rule_name == rule_yaml["name"]:
arg_channel_references = channel_map.channel_references
else:
arg_channel_references = None

if yaml_channel_references and arg_channel_references:
raise ValueError(
Expand Down

0 comments on commit ec02087

Please sign in to comment.