mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
add: return, to feel better about the linter.
This commit is contained in:
1 parent
15078626ba
commit
c6bd014f56
1 file changed
+2
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user