Skip to content

Commit

Permalink
Remove useless cast
Browse files Browse the repository at this point in the history
  • Loading branch information
dcermak committed Jan 23, 2023
1 parent 48c2410 commit f397836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt_lsp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f397836

Please sign in to comment.