Skip to content

Commit

Permalink
Remove unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Aug 1, 2023
1 parent c816a6b commit 9bde8ee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion htmltools/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1270,7 +1270,6 @@ def source_path_map(
return {"source": "", "href": ""}

if "href" in src:
src = cast(HTMLDependencyUrl, src)
return {"source": "", "href": src["href"]}

pkg = src.get("package", None)
Expand Down

0 comments on commit 9bde8ee

Please sign in to comment.