Skip to content

Commit c7ee7c9

Browse files
committed
Replace unwrap
1 parent 3ebf7b9 commit c7ee7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bitwarden-core/src/mobile/crypto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ pub fn make_user_signing_keys(client: &Client) -> Result<MakeUserSigningKeysResp
586586
let wrapping_key = ctx
587587
.dangerous_get_symmetric_key(SymmetricKeyId::User)
588588
.map_err(|_| CryptoError::InvalidKey)?;
589-
let signature_keypair = SigningKey::make(SignatureAlgorithm::Ed25519).unwrap();
589+
let signature_keypair = SigningKey::make(SignatureAlgorithm::Ed25519).map_err(|_| CryptoError::InvalidKey)?;
590590
// This needs to be changed to use the correct cose content format before rolling out to real
591591
// accounts
592592
let encrypted_signing_key = signature_keypair.to_cose()?;

0 commit comments

Comments
 (0)