Skip to content

Commit 7f365ff

Browse files
authored
Update GenerateKeyPairResponse.cs
1 parent 22868ea commit 7f365ff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Yubico.YubiKey/src/Yubico/YubiKey/Piv/Commands/GenerateKeyPairResponse.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,12 @@ public GenerateKeyPairResponse(
194194
/// </exception>
195195
#pragma warning disable CS0618 // Type or member is obsolete
196196
public PivPublicKey GetData() =>
197-
#pragma warning restore CS0618 // Type or member is obsolete
198197
Status switch
199198
{
200-
#pragma warning disable CS0618 // Type or member is obsolete
201199
ResponseStatus.Success => PivPublicKey.Create(ResponseApdu.Data, Algorithm),
202-
#pragma warning restore CS0618 // Type or member is obsolete
203200
_ => throw new InvalidOperationException(StatusMessage),
204201
};
202+
#pragma warning restore CS0618 // Type or member is obsolete
203+
205204
}
206205
}

0 commit comments

Comments
 (0)