mirror of
https://github.com/bitwarden/server.git
synced 2025-06-20 02:48:03 -05:00
Update src/Api/KeyManagement/Models/Response/PrivateKeysResponseModel.cs
Co-authored-by: Thomas Avery <43214426+Thomas-Avery@users.noreply.github.com>
This commit is contained in:
parent
6f3471e658
commit
4568eddabd
@ -18,10 +18,7 @@ public class PrivateKeysResponseModel : ResponseModel
|
|||||||
public PrivateKeysResponseModel(UserAccountKeysData accountKeys) : base("privateKeys")
|
public PrivateKeysResponseModel(UserAccountKeysData accountKeys) : base("privateKeys")
|
||||||
{
|
{
|
||||||
PublicKeyEncryptionKeyPair = new PublicKeyEncryptionKeyPairModel(accountKeys.PublicKeyEncryptionKeyPairData);
|
PublicKeyEncryptionKeyPair = new PublicKeyEncryptionKeyPairModel(accountKeys.PublicKeyEncryptionKeyPairData);
|
||||||
if (accountKeys == null)
|
ArgumentNullException.ThrowIfNull(accountKeys);
|
||||||
{
|
|
||||||
throw new ArgumentNullException(nameof(accountKeys));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (accountKeys.SignatureKeyPairData != null)
|
if (accountKeys.SignatureKeyPairData != null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user