We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22868ea commit 7f365ffCopy full SHA for 7f365ff
Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/GenerateKeyPairResponse.cs
@@ -194,13 +194,12 @@ public GenerateKeyPairResponse(
194
/// </exception>
195
#pragma warning disable CS0618 // Type or member is obsolete
196
public PivPublicKey GetData() =>
197
- #pragma warning restore CS0618 // Type or member is obsolete
198
Status switch
199
{
200
- #pragma warning disable CS0618 // Type or member is obsolete
201
ResponseStatus.Success => PivPublicKey.Create(ResponseApdu.Data, Algorithm),
202
203
_ => throw new InvalidOperationException(StatusMessage),
204
};
+ #pragma warning restore CS0618 // Type or member is obsolete
+
205
}
206
0 commit comments