refactor: check for is_none
Co-authored-by: TornaxO7 <tornax@proton.me>
This commit is contained in:
parent
5f59c191f5
commit
54ff7a561f
1 changed files with 2 additions and 3 deletions
|
@ -1120,9 +1120,8 @@ impl Client {
|
|||
text_document: lsp::TextDocumentIdentifier,
|
||||
work_done_token: Option<lsp::ProgressToken>,
|
||||
) -> Option<impl Future<Output = Result<Value>>> {
|
||||
match self.capabilities.get().unwrap().color_provider {
|
||||
Some(_) => (),
|
||||
_ => return None,
|
||||
if self.capabilities.get().unwrap().color_provider.is_none() {
|
||||
return None;
|
||||
}
|
||||
|
||||
let params = lsp::DocumentColorParams {
|
||||
|
|
Loading…
Add table
Reference in a new issue