mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +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:
parent
e5037cd6ea
commit
0e024221a8
1 changed files with 0 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue