From c14734d25eca05511e92864f7a08021df1d6f048 Mon Sep 17 00:00:00 2001 From: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> Date: Sun, 4 May 2025 17:29:07 -0700 Subject: [PATCH] chore: remove unused "dev/null" check --- src/tagstudio/qt/cache_manager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tagstudio/qt/cache_manager.py b/src/tagstudio/qt/cache_manager.py index 3ac5f29a..043c7073 100644 --- a/src/tagstudio/qt/cache_manager.py +++ b/src/tagstudio/qt/cache_manager.py @@ -141,8 +141,7 @@ class CacheManager(metaclass=Singleton): self.last_lib_path = self.lib.library_dir CacheManager.folder_dict.clear() - # NOTE: The /dev/null check is a workaround for current test assumptions. - if self.last_lib_path and self.last_lib_path != Path("/dev/null"): + if self.last_lib_path: # Ensure thumbnail cache path exists. self.cache_dir().mkdir(exist_ok=True) # Registers any existing folders and counts the capacity of the most recent one.