Skip to content

Commit

Permalink
rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Casheeew committed Dec 20, 2023
1 parent e0e29dc commit be7b4f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/js/language/dictionary-database.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export class DictionaryDatabase {
onProgress(progressData);
return keys;
};
const onProgress2 = () => {
const onProgressWrapper = () => {
const processed = progressData.processed + 1;
progressData.processed = processed;
if ((processed % progressRate) === 0 || processed === progressData.count) {
Expand All @@ -217,7 +217,7 @@ export class DictionaryDatabase {
const promises = [];
for (const [objectStoreName, indexName] of targets) {
const query = IDBKeyRange.only(dictionaryName);
const promise = this._db.bulkDelete(objectStoreName, indexName, query, filterKeys, onProgress2);
const promise = this._db.bulkDelete(objectStoreName, indexName, query, filterKeys, onProgressWrapper);
promises.push(promise);
}
await Promise.all(promises);
Expand Down

0 comments on commit be7b4f7

Please sign in to comment.