mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-12-27 07:04:08 +00:00
chore: clippy
This commit is contained in:
parent
fbf031b06d
commit
7b89d76cea
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user