Skip to content

Commit b4f7007

Browse files
minor
1 parent 22d08bd commit b4f7007

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

WDoc/utils/misc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,7 @@ def file_hasher(doc: dict) -> str:
304304
if "path" in doc and doc["path"] and Path(doc["path"]).exists():
305305
hashable = True
306306
if isinstance(doc["path"], str):
307-
if doc["path"] == "":
308-
hashable = False
309-
if not doc["path"].strip():
307+
if doc["path"] == "" or (not doc["path"].strip()):
310308
hashable = False
311309
if not doc["path"]:
312310
hashable = False

0 commit comments

Comments
 (0)