Skip to content

Commit 50f0379

Browse files
committed
pre-commit
1 parent a5a7bf7 commit 50f0379

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

docs/app/reflex_docs/templates/docpage/docpage.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -608,11 +608,7 @@ def breadcrumb(path: str, nav_sidebar: rx.Component, doc_content: str | None = N
608608
)
609609

610610
# Split the path into segments and capitalize each segment.
611-
segments = [
612-
segment.capitalize()
613-
for segment in path.split("/")
614-
if segment
615-
]
611+
segments = [segment.capitalize() for segment in path.split("/") if segment]
616612

617613
# Initialize an empty list to store the breadcrumbs and their separators
618614
breadcrumbs = []

0 commit comments

Comments
 (0)