refactor: merge into one statement
This commit is contained in:
parent
fbdfe74b0c
commit
5f59c191f5
1 changed files with 1 additions and 3 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue