refactor: merge into one statement

This commit is contained in:
Nikita Revenco 2024-12-20 16:10:41 +00:00
parent fbdfe74b0c
commit 5f59c191f5

View file

@ -1120,9 +1120,7 @@ impl Client {
text_document: lsp::TextDocumentIdentifier,
work_done_token: Option<lsp::ProgressToken>,
) -> Option<impl Future<Output = Result<Value>>> {
let capabilities = self.capabilities.get().unwrap();
match capabilities.color_provider {
match self.capabilities.get().unwrap().color_provider {
Some(_) => (),
_ => return None,
}