mirror of
https://github.com/vladmandic/automatic
synced 2026-09-14 02:28:43 +02:00
Remove redundant catch/abort
This commit is contained in:
@@ -197,14 +197,9 @@ async function idbFolderCleanup(keepSet, folder, signal) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const transaction = db.transaction('thumbs', 'readwrite');
|
||||
const props = { transaction, signal, resolve, reject };
|
||||
const abortTransaction = configureTransactionAbort(props, totalRemovals);
|
||||
try {
|
||||
const store = transaction.objectStore('thumbs');
|
||||
removals.forEach((entry) => { store.delete(entry); });
|
||||
} catch (err) {
|
||||
error(err);
|
||||
abortTransaction();
|
||||
}
|
||||
configureTransactionAbort(props, totalRemovals);
|
||||
const store = transaction.objectStore('thumbs');
|
||||
removals.forEach((entry) => { store.delete(entry); });
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user