Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix: Avoid casting as Error (#1592)

Neeraj Guptae4cff7060f9c
diff --git a/lib/services/remote_sync_service.dart b/lib/services/remote_sync_service.dart
index bc3b00ccd7..a08e94c9c2 100644
--- a/lib/services/remote_sync_service.dart
+++ b/lib/services/remote_sync_service.dart
@@ -676,7 +676,7 @@ class RemoteSyncService {
_ignoredUploads++;
_logger.warning("Invalid file error", error);
} else {
- throw (error as Error);
+ throw error;
}
}