Remove unused variable safe_path_parent

Remove unused variable safe_path_parent
This commit is contained in:
Peter Bieringer
2026-03-01 08:56:38 +01:00
committed by GitHub
parent 8121ec0a84
commit 770cb31e7a

View File

@@ -282,7 +282,6 @@ def path_to_filesystem(root: str, sane_path: str) -> str:
for part in parts:
if not is_safe_filesystem_path_component(part):
raise UnsafePathError(part)
safe_path_parent = safe_path
safe_path = os.path.join(safe_path, part)
# Check for conflicting files (e.g. case-insensitive file systems
# or short names on Windows file systems)