浏览代码

[auth] Remove awaits (#773)

Vishnu Mohandas 1 年之前
父节点
当前提交
50b50409b1
共有 3 个文件被更改,包括 5 次插入4 次删除
  1. 2 2
      auth/lib/core/logging/super_logging.dart
  2. 2 1
      auth/lib/ui/tools/lock_screen.dart
  3. 1 1
      auth/pubspec.yaml

+ 2 - 2
auth/lib/core/logging/super_logging.dart

@@ -167,7 +167,7 @@ class SuperLogging {
       await setupLogDir();
       await setupLogDir();
     }
     }
     if (sentryIsEnabled) {
     if (sentryIsEnabled) {
-      await setupSentry();
+      setupSentry().ignore();
     }
     }
 
 
     Logger.root.level = Level.ALL;
     Logger.root.level = Level.ALL;
@@ -250,7 +250,7 @@ class SuperLogging {
 
 
     // add error to sentry queue
     // add error to sentry queue
     if (sentryIsEnabled && rec.error != null) {
     if (sentryIsEnabled && rec.error != null) {
-      await _sendErrorToSentry(rec.error!, null);
+      _sendErrorToSentry(rec.error!, null).ignore();
     }
     }
   }
   }
 
 

+ 2 - 1
auth/lib/ui/tools/lock_screen.dart

@@ -56,7 +56,8 @@ class _LockScreenState extends State<LockScreen> with WidgetsBindingObserver {
                     text: context.l10n.unlock,
                     text: context.l10n.unlock,
                     iconData: Icons.lock_open_outlined,
                     iconData: Icons.lock_open_outlined,
                     onTap: () async {
                     onTap: () async {
-                      await _showLockScreen(source: "tapUnlock");
+                      // ignore: unawaited_futures
+                      _showLockScreen(source: "tapUnlock");
                     },
                     },
                   ),
                   ),
                 ),
                 ),

+ 1 - 1
auth/pubspec.yaml

@@ -1,6 +1,6 @@
 name: ente_auth
 name: ente_auth
 description: ente two-factor authenticator
 description: ente two-factor authenticator
-version: 2.0.37+237
+version: 2.0.40+240
 publish_to: none
 publish_to: none
 
 
 environment:
 environment: