Skip to content

Commit

Permalink
refactor(src): use list comprehension
Browse files Browse the repository at this point in the history
Co-authored-by: Nejc Habjan <[email protected]>
  • Loading branch information
antoineauger and nejch authored Nov 22, 2024
1 parent fe49ba6 commit d85dbe2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions djlint/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,4 @@ def __init__(
)

def get_resolved_exclude_paths(self) -> list[Path]:
exclude_paths = []
for p in self.exclude.split("|"):
exclude_paths.append(Path(p.strip().replace("\\.", ".")).resolve())
return exclude_paths
return [Path(p.strip().replace("\\.", ".").resolve() for p in self.exclude.split("|")]

0 comments on commit d85dbe2

Please sign in to comment.