Skip to content

Commit 90c1e4b

Browse files
author
Jonas Hendrickx
committed
Collection expression
1 parent ddc8b92 commit 90c1e4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Src/Fido2.Models/AssertionOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class AssertionOptions : Fido2ResponseBase
5858
/// This member is intended for use by Relying Parties that wish to select a preference regarding the attestation statement format used, if such an attestation is requested.
5959
/// </summary>
6060
[JsonPropertyName("attestationFormats")]
61-
public IReadOnlyList<AttestationStatementFormatIdentifier> AttestationFormats { get; set; } = Array.Empty<AttestationStatementFormatIdentifier>();
61+
public IReadOnlyList<AttestationStatementFormatIdentifier> AttestationFormats { get; set; } = [];
6262

6363
/// <summary>
6464
/// This OPTIONAL member contains additional parameters requesting additional processing by the client and authenticator.

Src/Fido2.Models/CredentialCreateOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public sealed class CredentialCreateOptions : Fido2ResponseBase
5656
/// This parameter is advisory and the authenticator MAY use an attestation statement not enumerated in this parameter.
5757
/// </remarks>
5858
[JsonPropertyName("attestationFormats")]
59-
public IReadOnlyList<AttestationStatementFormatIdentifier> AttestationFormats { get; set; } = Array.Empty<AttestationStatementFormatIdentifier>();
59+
public IReadOnlyList<AttestationStatementFormatIdentifier> AttestationFormats { get; set; } = [];
6060

6161
/// <summary>
6262
/// This member is intended for use by Relying Parties that wish to select the appropriate authenticators to participate in the create() operation.

0 commit comments

Comments
 (0)