Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Simplifies a fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-HAP committed Dec 14, 2022
1 parent 1c2b1dd commit 35c9249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eda_server/db/sql/rulebook/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def expand_ruleset_sources(rulebook_data: dict) -> dict:
for ruleset_data in rulebook_data:
xp_sources = []
expanded_ruleset_sources[ruleset_data["name"]] = xp_sources
for source in ruleset_data.get("sources", []) or []:
for source in ruleset_data.get("sources") or []:
xp_src = {"name": "<unnamed>"}
for src_key, src_val in source.items():
if src_key == "name":
Expand Down

0 comments on commit 35c9249

Please sign in to comment.