From 3016e08de7d521216cecf6777d8d1a2fc1078841 Mon Sep 17 00:00:00 2001 From: Arnim Rupp <46819580+ruppde@users.noreply.github.com> Date: Mon, 9 Oct 2023 17:08:18 +0200 Subject: [PATCH] Update hover.py --- yls/hover.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yls/hover.py b/yls/hover.py index f8e4e1d..dd9ad52 100644 --- a/yls/hover.py +++ b/yls/hover.py @@ -64,9 +64,7 @@ async def hover(self, params: lsp_types.TextDocumentPositionParams) -> lsp_types ) log.debug(f'[HOVER] Hover request with token "{token}" and type "{token.type}"') - if ( - token.type in (yaramod.TokenType.StringId, yaramod.TokenType.StringIdAfterNewline) - ): + if token.type in (yaramod.TokenType.StringId, yaramod.TokenType.StringIdAfterNewline): return await self.hover_string(token, document, position) elif token.type == yaramod.TokenType.Id: yara_file = utils.yaramod_parse_file(document.path)