From 54ff7a561f9274f14d0da34f08a7102503e289eb Mon Sep 17 00:00:00 2001 From: Nikita Revenco <154856872+NikitaRevenco@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:36:59 +0000 Subject: [PATCH] refactor: check for is_none Co-authored-by: TornaxO7 --- helix-lsp/src/client.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index 296dee16..69ddb1ec 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -1120,9 +1120,8 @@ impl Client { text_document: lsp::TextDocumentIdentifier, work_done_token: Option, ) -> Option>> { - 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 {