TF-2066 Remove some return Future unnecessary

(cherry picked from commit bc9342e6aa7142e7ef59d8b3e2981da0e5942889)
This commit is contained in:
dab246
2023-08-03 10:12:41 +07:00
committed by Dat Vu
parent 25b59d2310
commit be3703f847
2 changed files with 0 additions and 2 deletions
@@ -105,7 +105,6 @@ class CachingManager {
log('CachingManager::onUpgradeCache():oldVersion $oldVersion | newVersion: $newVersion'); log('CachingManager::onUpgradeCache():oldVersion $oldVersion | newVersion: $newVersion');
await clearData(); await clearData();
await storeCacheVersion(newVersion); await storeCacheVersion(newVersion);
return Future.value();
} }
Future<bool> storeCacheVersion(int newVersion) async { Future<bool> storeCacheVersion(int newVersion) async {
@@ -56,7 +56,6 @@ class HiveCacheConfig {
if (oldVersion != newVersion) { if (oldVersion != newVersion) {
await cachingManager.onUpgradeCache(oldVersion, newVersion); await cachingManager.onUpgradeCache(oldVersion, newVersion);
} }
return Future.value();
} }
static Future<void> initializeEncryptionKey() async { static Future<void> initializeEncryptionKey() async {