Skip to content

Commit

Permalink
fix: fix lint error (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
wendytang authored Feb 12, 2025
1 parent 80b694d commit 724e5ac
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/goose/src/providers/formats/openai.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,7 @@ fn ensure_valid_json_schema(schema: &mut Value) {
if let Some(properties_obj) = properties.as_object_mut() {
for (_key, prop) in properties_obj.iter_mut() {
if prop.is_object()
&& prop
.get("type")
.and_then(|t| t.as_str())
.map_or(false, |t| t == "object")
&& prop.get("type").and_then(|t| t.as_str()) == Some("object")
{
ensure_valid_json_schema(prop);
}
Expand Down

0 comments on commit 724e5ac

Please sign in to comment.