diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-19 07:30:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-19 12:30:17 +0000 |
commit | 2da866f982930c76d2317a3be426410683ecf5a2 (patch) | |
tree | e77ce545177ba398068cb63037096a56dea04e2c /ext/js/dictionary/dictionary-worker-handler.js | |
parent | 65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (diff) |
Update eslint rules (#710)
Diffstat (limited to 'ext/js/dictionary/dictionary-worker-handler.js')
-rw-r--r-- | ext/js/dictionary/dictionary-worker-handler.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/dictionary/dictionary-worker-handler.js b/ext/js/dictionary/dictionary-worker-handler.js index 1c11be93..4e263c21 100644 --- a/ext/js/dictionary/dictionary-worker-handler.js +++ b/ext/js/dictionary/dictionary-worker-handler.js @@ -41,13 +41,13 @@ export class DictionaryWorkerHandler { const {action, params} = event.data; switch (action) { case 'importDictionary': - this._onMessageWithProgress(params, this._importDictionary.bind(this)); + void this._onMessageWithProgress(params, this._importDictionary.bind(this)); break; case 'deleteDictionary': - this._onMessageWithProgress(params, this._deleteDictionary.bind(this)); + void this._onMessageWithProgress(params, this._deleteDictionary.bind(this)); break; case 'getDictionaryCounts': - this._onMessageWithProgress(params, this._getDictionaryCounts.bind(this)); + void this._onMessageWithProgress(params, this._getDictionaryCounts.bind(this)); break; case 'getImageDetails.response': this._mediaLoader.handleMessage(params); @@ -95,7 +95,7 @@ export class DictionaryWorkerHandler { errors: errors.map((error) => ExtensionError.serialize(error)) }; } finally { - dictionaryDatabase.close(); + void dictionaryDatabase.close(); } } @@ -109,7 +109,7 @@ export class DictionaryWorkerHandler { try { return await dictionaryDatabase.deleteDictionary(dictionaryTitle, 1000, onProgress); } finally { - dictionaryDatabase.close(); + void dictionaryDatabase.close(); } } @@ -122,7 +122,7 @@ export class DictionaryWorkerHandler { try { return await dictionaryDatabase.getDictionaryCounts(dictionaryNames, getTotal); } finally { - dictionaryDatabase.close(); + void dictionaryDatabase.close(); } } |