Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: clippy

Nathaned5334a7d6ab
diff --git a/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs b/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs
index 1a125a4b47..05f6313655 100644
--- a/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs
+++ b/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs
@@ -293,7 +293,7 @@ impl LocalAIController {
std::thread::current().id()
);
- if let Ok(_) = self.resource.set_llm_setting(setting).await {
+ if self.resource.set_llm_setting(setting).await.is_ok() {
self.reload().await?;
}
Ok(())