fix clippy

This commit is contained in:
Adil Hafeez 2025-12-25 20:34:52 -08:00
parent f16220bb76
commit aa3bcc84b5
No known key found for this signature in database
GPG key ID: 9B18EF7691369645

View file

@ -164,7 +164,7 @@ impl TryFrom<Message> for BedrockMessage {
let has_tool_calls = message
.tool_calls
.as_ref()
.map_or(false, |calls| !calls.is_empty());
.is_some_and(|calls| !calls.is_empty());
// Add text content if it's non-empty, or if we have no tool calls (to avoid empty content)
if !text_content.is_empty() {