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)