mirror of
https://github.com/bitwarden/server.git
synced 2025-06-19 18:38: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")
|
||||
{
|
||||
PublicKeyEncryptionKeyPair = new PublicKeyEncryptionKeyPairModel(accountKeys.PublicKeyEncryptionKeyPairData);
|
||||
if (accountKeys == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(accountKeys));
|
||||
}
|
||||
ArgumentNullException.ThrowIfNull(accountKeys);
|
||||
|
||||
if (accountKeys.SignatureKeyPairData != null)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user