소스 검색

Don't throw an error if account is not configured

Vishnu Mohandas 4 년 전
부모
커밋
d466e120b4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      lib/services/sync_service.dart

+ 2 - 1
lib/services/sync_service.dart

@@ -207,7 +207,8 @@ class SyncService {
 
   Future<void> syncWithRemote({bool silently = false}) async {
     if (!Configuration.instance.hasConfiguredAccount()) {
-      return Future.error("Account not configured yet");
+      _logger.info("Skipping remote sync since account is not configured");
+      return;
     }
     await _collectionsService.sync();
     final updatedCollections =