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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: clippy
Nathan7b89d76ceac0
diff --git a/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs b/frontend/rust-lib/flowy-ai/src/local_ai/controller.rsindex 79a599b904..c9b9ab52be 100644--- a/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs+++ b/frontend/rust-lib/flowy-ai/src/local_ai/controller.rs@@ -101,11 +101,9 @@ impl LocalAIController {let mut ready = false;let mut lack_of_resource = None;let enabled = cloned_store_preferences.get_bool(&key).unwrap_or(true);- if !matches!(state, RunningState::UnexpectedStop { .. }) {- if enabled {- ready = is_plugin_ready();- lack_of_resource = cloned_llm_res.get_lack_of_resource().await;- }+ if !matches!(state, RunningState::UnexpectedStop { .. }) && enabled {+ ready = is_plugin_ready();+ lack_of_resource = cloned_llm_res.get_lack_of_resource().await;}let new_state = RunningStatePB::from(state);