Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove unnecessary awaits

vishnukvmdb0f8e331e63c
diff --git a/auth/lib/core/logging/super_logging.dart b/auth/lib/core/logging/super_logging.dart
index 2d2972d64e..39a983874a 100644
--- a/auth/lib/core/logging/super_logging.dart
+++ b/auth/lib/core/logging/super_logging.dart
@@ -167,7 +167,7 @@ class SuperLogging {
await setupLogDir();
}
if (sentryIsEnabled) {
- await setupSentry();
+ setupSentry().ignore();
}
Logger.root.level = Level.ALL;
@@ -250,7 +250,7 @@ class SuperLogging {
// add error to sentry queue
if (sentryIsEnabled && rec.error != null) {
- await _sendErrorToSentry(rec.error!, null);
+ _sendErrorToSentry(rec.error!, null).ignore();
}
}
diff --git a/auth/lib/ui/tools/lock_screen.dart b/auth/lib/ui/tools/lock_screen.dart
index ca8ae1e9b6..c2e725f1eb 100644
--- a/auth/lib/ui/tools/lock_screen.dart
+++ b/auth/lib/ui/tools/lock_screen.dart
@@ -56,7 +56,8 @@ class _LockScreenState extends State<LockScreen> with WidgetsBindingObserver {
text: context.l10n.unlock,
iconData: Icons.lock_open_outlined,
onTap: () async {
- await _showLockScreen(source: "tapUnlock");
+ // ignore: unawaited_futures
+ _showLockScreen(source: "tapUnlock");
},
),
),