Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Apr 19, 2023
1 parent 45ed6ea commit 5b87af0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions coverage/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@ def prep_patterns(patterns: Iterable[str]) -> List[str]:
"""
prepped = []
for p in patterns or []:
if p.startswith(("*", "?")):
prepped.append(p)
else:
prepped.append(p)
if not p.startswith(("*", "?")):
prepped.append(abs_file(p))
return prepped

Expand Down

0 comments on commit 5b87af0

Please sign in to comment.