Skip to content

Commit c6bd014

Browse files
committed
add: return, to feel better about the linter.
1 parent 1507862 commit c6bd014

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/stores/preferences.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function createPreferences() {
7474
/**
7575
* Update the local store and then synchronizes them on user prefs.
7676
*/
77-
function updateAndSync(callback: (prefs: PreferencesStore) => void) {
77+
function updateAndSync(callback: (prefs: PreferencesStore) => void): Promise<void> {
7878
let oldPrefsSnapshot: PreferencesStore;
7979
let newPrefsSnapshot: PreferencesStore;
8080

@@ -90,7 +90,7 @@ function createPreferences() {
9090
}
9191

9292
// sync the preferences.
93-
updateConsolePreferences(newPrefsSnapshot);
93+
return updateConsolePreferences(newPrefsSnapshot);
9494
}
9595

9696
return {

0 commit comments

Comments
 (0)