mirror of
https://github.com/katanemo/plano.git
synced 2026-06-23 15:38:07 +02:00
fix clippy
This commit is contained in:
parent
f16220bb76
commit
aa3bcc84b5
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ impl TryFrom<Message> for BedrockMessage {
|
||||||
let has_tool_calls = message
|
let has_tool_calls = message
|
||||||
.tool_calls
|
.tool_calls
|
||||||
.as_ref()
|
.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)
|
// Add text content if it's non-empty, or if we have no tool calls (to avoid empty content)
|
||||||
if !text_content.is_empty() {
|
if !text_content.is_empty() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue