Skip to content

Commit

Permalink
Add a comment since the if expression is a bit hard to understand
Browse files Browse the repository at this point in the history
  • Loading branch information
ichard26 committed May 15, 2021
1 parent c8d894f commit 004cdd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/black/files.py
Expand Up @@ -204,6 +204,8 @@ def gen_python_files(
continue

if child.is_dir():
# If gitignore is None, gitignore usage is disabled, while a Falsey
# gitignore is when the directory doesn't have a .gitignore file.
yield from gen_python_files(
child.iterdir(),
root,
Expand Down

0 comments on commit 004cdd8

Please sign in to comment.