From 1b5295dd5e5ec2dc4be80709277cbf0e54fa4228 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Fri, 28 Nov 2025 13:37:48 -0800 Subject: [PATCH] Remove redundant check --- javascript/indexdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/indexdb.js b/javascript/indexdb.js index cba86e8eb..b632b358f 100644 --- a/javascript/indexdb.js +++ b/javascript/indexdb.js @@ -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);