mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-07 08:24:52 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user