reduce indentation level

pull/12085/head
GladkihEgor 2025-03-20 23:33:48 +05:00
parent dacaef17ea
commit 7afdd1cc94
1 changed files with 2 additions and 4 deletions

View File

@ -704,13 +704,11 @@ impl Registry {
}) {
return Some((name.to_owned(), Ok(client.clone())));
}
} else {
} else if !autostart {
// If autostart LSP turned off, do not automatically start a client for server
// Try emulate the empty clients list behavior for disable LSP
if !autostart {
return None;
}
}
match self.start_client(
name.clone(),
language_config,