Skip to content

Commit

Permalink
Remove an unnecessary type check.
Browse files Browse the repository at this point in the history
  • Loading branch information
xkww3n committed Dec 1, 2023
1 parent 1599bee commit a24cd86
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Utils/ruleset.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,6 @@ def dump(src: RuleSet, target: str, dst: Path, filename: str) -> None:
if "domain" not in ruleset["rules"][0]:
ruleset["rules"][0]["domain"] = []
ruleset["rules"][0]["domain"].append(rule.Payload)
case _:
raise TypeError(f'Unsupported rule type "{rule.Type}". File: {dst}.')
dist.write(dumps(ruleset, indent=2))
case "IPCIDR":
for rule in src:
Expand Down

0 comments on commit a24cd86

Please sign in to comment.