Remove redundant check

This commit is contained in:
awsr
2025-11-28 13:37:48 -08:00
parent 9ceed935ce
commit 1b5295dd5e
+1 -1
View File
@@ -136,7 +136,7 @@ async function idbFolderCleanup(keepSet, folder, msgCallback) {
if (!(keepSet instanceof Set)) {
throw new TypeError('IndexedDB cleaning function must be given a Set() of the current gallery hashes');
}
if (!folder || typeof folder !== 'string') {
if (typeof folder !== 'string') {
throw new Error('IndexedDB cleaning function must be told the current active folder');
}
const removals = (new Set(await idbGetAllKeys('folder', folder))).difference(keepSet);