helpers: remove unnecessary isinstance test

This commit is contained in:
James R. Barlow
2020-05-12 01:28:50 -07:00
parent 4b986a5943
commit a87c81a64f
+1 -5
View File
@@ -144,11 +144,7 @@ def is_file_writable(test_file: os.PathLike):
the location is writable.
"""
try:
if not isinstance(test_file, Path):
p = Path(test_file)
else:
p = test_file
p = Path(test_file)
if p.is_symlink():
p = p.resolve(strict=False)