Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlVS committed Sep 26, 2024
1 parent 22b6773 commit 0893464
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mm2src/mm2_main/src/lp_wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ async fn decrypt_validate_or_save_passphrase(
Ok(Some(decrypted_passphrase))
},
None => {
if ctx.allow_registrations() {
save_encrypted_passphrase(ctx, wallet_name, &encrypted_passphrase_data)
.await
.mm_err(|e| WalletInitError::WalletsStorageError(e.to_string()))?;
return Ok(Some(decrypted_passphrase));
}
if ctx.allow_registrations() {
save_encrypted_passphrase(ctx, wallet_name, &encrypted_passphrase_data)
.await
.mm_err(|e| WalletInitError::WalletsStorageError(e.to_string()))?;
return Ok(Some(decrypted_passphrase));
}
// If no passphrase is found and registrations are not allowed, return an error
Err(WalletInitError::WalletCreationNotAllowed.into())
},
Expand Down

0 comments on commit 0893464

Please sign in to comment.