1
0
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:
Bernd Schoolmann 2025-06-12 16:44:17 +02:00 committed by GitHub
parent 6f3471e658
commit 4568eddabd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
{