Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yingjiehe-xyz committed Feb 25, 2025
1 parent 933f777 commit 4eb6f9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/goose/src/agents/agent_permission.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ pub async fn detect_read_only_tools(

// Process the response and return an empty vector if the response is invalid
if let Ok((message, _usage)) = res {
extract_read_only_tools(&message).unwrap_or_else(Vec::new)
extract_read_only_tools(&message).unwrap_or_default()
} else {
vec![]
}
Expand Down

0 comments on commit 4eb6f9a

Please sign in to comment.