Remove redundant closure

This commit is contained in:
Agus Zubiaga 2025-08-18 17:19:24 -03:00
parent 21082c0aba
commit 2ed2b82e02

View file

@ -98,7 +98,7 @@ impl AgentConnection for ClaudeAgentConnection {
};
let api_key =
cx.update(|cx| AnthropicLanguageModelProvider::api_key(cx))?
cx.update(AnthropicLanguageModelProvider::api_key)?
.await
.map_err(|err| {
if err.is::<language_model::AuthenticateError>() {