refactor: remove no-op pass branch in process_items

Address Greptile review nit — the if + pass was a no-op since the
mutation was removed. Deleting the branch entirely.
This commit is contained in:
Chesars
2026-03-02 17:05:37 -03:00
parent e5037cd6ea
commit 0e024221a8
-2
View File
@@ -615,8 +615,6 @@ def process_items(schema, depth=0):
f"Max depth of {DEFAULT_MAX_RECURSE_DEPTH} exceeded while processing schema. Please check the schema for excessive nesting."
)
if isinstance(schema, dict):
if "items" in schema and isinstance(schema["items"], dict) and _is_any_type_schema(schema["items"]):
pass # preserve "any type" semantics — don't coerce to object
for key, value in schema.items():
if isinstance(value, dict):
process_items(value, depth + 1)