add: return, to feel better about the linter.

This commit is contained in:
Darshan committed 2025-06-03 18:57:08 +05:30
1 parent 15078626ba
commit c6bd014f56
1 file changed
+2 -2
+2 -2
View File
@@ -74,7 +74,7 @@ function createPreferences() {
/**
* Update the local store and then synchronizes them on user prefs.
*/
function updateAndSync(callback: (prefs: PreferencesStore) => void) {
function updateAndSync(callback: (prefs: PreferencesStore) => void): Promise<void> {
let oldPrefsSnapshot: PreferencesStore;
let newPrefsSnapshot: PreferencesStore;
@@ -90,7 +90,7 @@ function createPreferences() {
}
// sync the preferences.
updateConsolePreferences(newPrefsSnapshot);
return updateConsolePreferences(newPrefsSnapshot);
}
return {