From f397836489fe5d5daa57b2778c5a7c952928e96b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Mon, 23 Jan 2023 12:34:17 +0100 Subject: [PATCH] Remove useless cast --- salt_lsp/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt_lsp/server.py b/salt_lsp/server.py index 31a00a4..1183a09 100644 --- a/salt_lsp/server.py +++ b/salt_lsp/server.py @@ -228,7 +228,7 @@ def goto_definition( if not isinstance(path[-1], RequisiteNode): return None - if (id_to_find := cast(RequisiteNode, path[-1]).reference) is None: + if (id_to_find := path[-1].reference) is None: return None return salt_server.find_id_in_doc_and_includes(id_to_find, uri)