Skip to content

Commit 650549e

Browse files
committed
Delete an otiose termination check
1 parent 2eb4c22 commit 650549e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

nancy/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ def find_on_path(start_path: Path, file: Path) -> Optional[Path]:
136136
):
137137
debug(f"Found '{obj}'")
138138
return obj
139-
next_path = start_path.parent
140-
if next_path == start_path:
141-
break
142-
start_path = next_path
143139
return None
144140

145141
# Set up macros

0 commit comments

Comments
 (0)