fix: remove unused _yaml_scalar and redundant isinstance guard
lint / lint (push) Failing after 1m32s
test / unit (pull_request) Successful in 34s
test / integration (pull_request) Successful in 42s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 20:24:52 +00:00
parent 4c60779fac
commit 1c7812fa9f
2 changed files with 0 additions and 10 deletions
@@ -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]}
)
-8
View File
@@ -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: