Skip to content

Commit 764b5f3

Browse files
committed
Reduce the number of returns in _mkdirp
1 parent e5e15da commit 764b5f3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

install.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,9 @@ def _mkdirp(path: str) -> None:
8080
raise ValueError(
8181
"{} exists, but it is not a directory.".format(
8282
path))
83-
else:
84-
return
85-
_mkdirp(os.path.dirname(path))
86-
os.mkdir(path)
83+
else:
84+
_mkdirp(os.path.dirname(path))
85+
os.mkdir(path)
8786

8887

8988
def _main(fnames: List[str], src_dir: str, dst_dir: str) -> None:

0 commit comments

Comments
 (0)