Update log.py: revert unecessary if change

This commit is contained in:
Alexandre Aubin 2024-07-17 16:44:38 +02:00 committed by GitHub
parent 1c6821e458
commit b2d69255ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,7 +96,7 @@ def _update_log_parent_symlinks():
name = log_md[: -len(METADATA_FILE_EXT)]
parent_symlink = os.path.join(OPERATIONS_PATH, f".{name}.parent.yml")
if (os.path.islink(log_md_fullpath) and os.path.realpath(log_md_fullpath) == "/dev/null") or os.path.islink(parent_symlink):
if os.path.islink(parent_symlink):
continue
try: