Skip to content

Commit

Permalink
review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
slsyy committed Apr 4, 2021
1 parent bee802e commit 6a5b7f7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pre_commit_hooks/check_case_conflict.py
Expand Up @@ -15,11 +15,10 @@ def lower_set(iterable: Iterable[str]) -> Set[str]:


def parents(file: str) -> Iterator[str]:
while True:
file = os.path.dirname(file)
if not file:
return
file = os.path.dirname(file)
while file:
yield file
file = os.path.dirname(file)


def directories_for(files: Set[str]) -> Set[str]:
Expand Down

0 comments on commit 6a5b7f7

Please sign in to comment.