Skip to content

Commit 1403146

Browse files
committed
Fix missing return
Pointed out by Jessica in post-commit review.
1 parent 28f7990 commit 1403146

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pycheribuild/mtree.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def _walk(self, top, prefix) -> "Iterator[tuple[MtreePath, list[str], list[str]]
202202
split = self._split_key(top)
203203
if split is not None:
204204
yield from self.children[split[0]]._walk(split[1], prefix / split[0])
205+
return
205206
if self.entry is not None and self.entry.attributes["type"] != "dir":
206207
return
207208
files: "list[tuple[str, MtreeSubtree]]" = []

0 commit comments

Comments
 (0)