mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
Remove redundant check
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user