Remove extra type checking...

- JSDoc should automatically apply the types to the variables/parameters in the IDE to provide a warning when the wrong value is being sent.
pull/4624/head
awsr 2026-02-05 15:18:07 -08:00
parent f4bb78b51c
commit 137504de36
No known key found for this signature in database
1 changed files with 0 additions and 7 deletions

View File

@ -178,13 +178,6 @@ async function idbCount(folder) {
*/
async function idbFolderCleanup(keepSet, folder, signal) {
if (!db) return null;
if (!(keepSet instanceof Set)) {
throw new TypeError('IndexedDB cleaning function must be given a Set() of the current gallery hashes');
}
if (typeof folder !== 'string') {
throw new Error('IndexedDB cleaning function must be told the current active folder');
}
let removals = new Set(await idbGetAllKeys('folder', folder));
removals = removals.difference(keepSet); // Don't need to keep full set in memory
const totalRemovals = removals.size;