Browse Source

Remove unnecessary type casting

vishnukvmd 2 years ago
parent
commit
43fb16bf52
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/services/user_service.dart

+ 2 - 2
lib/services/user_service.dart

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