Skip to content

Commit c14734d

Browse files
committed
chore: remove unused "dev/null" check
1 parent 36f3b45 commit c14734d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tagstudio/qt/cache_manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ def register_existing_folders(self):
141141
self.last_lib_path = self.lib.library_dir
142142
CacheManager.folder_dict.clear()
143143

144-
# NOTE: The /dev/null check is a workaround for current test assumptions.
145-
if self.last_lib_path and self.last_lib_path != Path("/dev/null"):
144+
if self.last_lib_path:
146145
# Ensure thumbnail cache path exists.
147146
self.cache_dir().mkdir(exist_ok=True)
148147
# Registers any existing folders and counts the capacity of the most recent one.

0 commit comments

Comments
 (0)