Skip to content

Commit 55e31a2

Browse files
fix: has_content_for_myst checking is broken and is always true
1 parent 73f69a3 commit 55e31a2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/afterpython/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,7 @@ def is_port_in_use(
188188
def has_content_for_myst(content_path: Path) -> bool:
189189
"""Check if a content directory has any content files"""
190190
return any(
191-
content_path.glob("*.md")
192-
or content_path.glob("*.ipynb")
193-
or content_path.glob("*.tex")
191+
any(content_path.glob(pattern)) for pattern in ("*.md", "*.ipynb", "*.tex")
194192
)
195193

196194

0 commit comments

Comments
 (0)