fix(api): use question mark for optional tool call names

Resolves clippy::question_mark in openai_compat.rs.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim 2026-04-02 15:00:20 +09:00
parent 7976bf994c
commit 1e8e152148

View file

@ -506,9 +506,7 @@ impl ToolCallState {
} }
fn start_event(&self) -> Option<ContentBlockStartEvent> { fn start_event(&self) -> Option<ContentBlockStartEvent> {
let Some(name) = self.name.clone() else { let name = self.name.clone()?;
return None;
};
let id = self let id = self
.id .id
.clone() .clone()