Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Clean up

Neeraj Gupta258c47eba409
diff --git a/mobile/lib/services/magic_cache_service.dart b/mobile/lib/services/magic_cache_service.dart
index 40881b91aa..595cf3a5c0 100644
--- a/mobile/lib/services/magic_cache_service.dart
+++ b/mobile/lib/services/magic_cache_service.dart
@@ -29,7 +29,6 @@ class MagicCache {
List<int>.from(json['fileUploadedIDs']),
);
}
-
Map<String, dynamic> toJson() {
return {
'title': title,
@@ -175,14 +174,7 @@ class MagicCacheService {
await file
.writeAsBytes(MagicCache.encodeListToJson(magicCaches).codeUnits);
w?.log("cacheWritten");
- unawaited(
- _resetLastMagicCacheUpdateTime().onError((error, stackTrace) {
- _logger.warning(
- "Error resetting last magic cache update time",
- error,
- );
- }),
- );
+ await _resetLastMagicCacheUpdateTime();
w?.logAndReset('done');
} catch (e) {
_logger.info("Error updating magic cache", e);