浏览代码

Remove unnecessary type casting

vishnukvmd 2 年之前
父节点
当前提交
43fb16bf52
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/services/user_service.dart

+ 2 - 2
lib/services/user_service.dart

@@ -681,9 +681,9 @@ class UserService {
         data: {
           "code": code,
           "encryptedTwoFactorSecret":
-              CryptoUtil.bin2base64(encryptionResult.encryptedData as Uint8List),
+              CryptoUtil.bin2base64(encryptionResult.encryptedData!),
           "twoFactorSecretDecryptionNonce":
-              CryptoUtil.bin2base64(encryptionResult.nonce as Uint8List),
+              CryptoUtil.bin2base64(encryptionResult.nonce!),
         },
       );
       await dialog.hide();