diff --git a/bot_bottle/backend/docker/egress_apply.py b/bot_bottle/backend/docker/egress_apply.py index b1440e3..87b6d42 100644 --- a/bot_bottle/backend/docker/egress_apply.py +++ b/bot_bottle/backend/docker/egress_apply.py @@ -183,8 +183,6 @@ def _merge_single_route( new_paths.append(val) existing_paths.add(val) if new_paths: - if not isinstance(existing_matches, list): - existing_matches = [] existing_matches.append( {"paths": [{"value": p} for p in new_paths]} ) diff --git a/bot_bottle/egress.py b/bot_bottle/egress.py index de65208..a9a582f 100644 --- a/bot_bottle/egress.py +++ b/bot_bottle/egress.py @@ -186,14 +186,6 @@ def _route_to_yaml_fields(r: Route) -> dict[str, object]: return fields -def _yaml_scalar(v: object) -> str: - if isinstance(v, bool): - return "true" if v else "false" - if isinstance(v, str): - return f'"{v}"' - return str(v) - - def egress_render_routes( routes: tuple[EgressRoute, ...], ) -> str: