Skip to content

Commit

Permalink
remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Jan 27, 2023
1 parent ae44179 commit ddc7178
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/idom/_console/update_html_usages.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ def update_html_usages(paths: list[str]) -> None:
if sys.version_info < (3, 9): # pragma: no cover
raise RuntimeError("This command requires Python>=3.9")

at_least_one_file = False
for p in map(Path, paths):
for f in [p] if p.is_file() else p.rglob("*.py"):
at_least_one_file = True
result = generate_rewrite(file=f, source=f.read_text())
if result is not None:
f.write_text(result)
Expand Down

0 comments on commit ddc7178

Please sign in to comment.