Skip to content

Commit

Permalink
remove unneeded async await
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 committed Nov 5, 2024
1 parent e6dab1a commit 99ae78c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/js/pages/settings/dictionary-import-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ export class DictionaryImportController {
/**
* @param {import('settings-controller').EventArgument<'importDictionaryFromUrl'>} details
*/
async _onEventImportDictionaryFromUrl({url, profilesDictionarySettings, onImportDone}) {
await this.importFilesFromURLs(url, profilesDictionarySettings, onImportDone);
_onEventImportDictionaryFromUrl({url, profilesDictionarySettings, onImportDone}) {
void this.importFilesFromURLs(url, profilesDictionarySettings, onImportDone);
}

/** */
Expand Down Expand Up @@ -443,7 +443,7 @@ export class DictionaryImportController {

const importProgressTracker = new ImportProgressTracker(this._getUrlImportSteps(), urls.length);
const onProgress = importProgressTracker.onProgress.bind(importProgressTracker);
await this._importDictionaries(
void this._importDictionaries(
this._generateFilesFromUrls(urls, onProgress),
profilesDictionarySettings,
onImportDone,
Expand Down

0 comments on commit 99ae78c

Please sign in to comment.