Skip to content

Commit e0c1fed

Browse files
AA-Turnerhugovk
andauthored
Simplify
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent d708c71 commit e0c1fed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build_docs.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -996,10 +996,9 @@ def symlink(
996996
if not directory_path.exists():
997997
return # No touching link, dest doc not built yet.
998998

999-
link_exists = link.exists()
1000-
if not link_exists or readlink(link) != directory:
999+
if not link.exists() or readlink(link) != directory:
10011000
# Link does not exist or points to the wrong target.
1002-
if link_exists:
1001+
if link.exists():
10031002
link.unlink()
10041003
link.symlink_to(directory)
10051004
run(["chown", "-h", f":{group}", str(link)])

0 commit comments

Comments
 (0)