Skip to content

Commit 8566441

Browse files
committed
misc: rename field
1 parent 049b789 commit 8566441

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Yubico.YubiKey/src/Yubico/YubiKey/SmartCardConnection.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ internal class SmartCardConnection : IYubiKeyConnection
3434
private readonly byte[]? _applicationId;
3535
private readonly ISmartCardConnection _smartCardConnection;
3636
private IApduTransform _apduPipeline;
37-
3837
private bool _disposedValue;
39-
private bool IsOath => GetIsAuth();
38+
private bool IsOath => GetIsOauth();
4039
public ISelectApplicationData? SelectApplicationData { get; set; }
4140

4241
/// <summary>
@@ -48,7 +47,7 @@ internal class SmartCardConnection : IYubiKeyConnection
4847
public SmartCardConnection(
4948
ISmartCardDevice smartCardDevice,
5049
YubiKeyApplication yubiKeyApplication)
51-
: this(smartCardDevice, yubiKeyApplication, (byte[]?)null)
50+
: this(smartCardDevice, yubiKeyApplication, null)
5251
{
5352
if (yubiKeyApplication == YubiKeyApplication.Fido2)
5453
{
@@ -110,7 +109,7 @@ protected SmartCardConnection(
110109
_smartCardConnection = smartCardDevice.Connect();
111110

112111
// Set up the pipeline
113-
_apduPipeline =new SmartCardTransform(_smartCardConnection);
112+
_apduPipeline = new SmartCardTransform(_smartCardConnection);
114113
_apduPipeline = AddResponseChainingTransform(_apduPipeline);
115114
_apduPipeline = new CommandChainingTransform(_apduPipeline);
116115
}
@@ -210,7 +209,7 @@ private void SelectApplication()
210209
SelectApplicationData = response.GetData();
211210
}
212211

213-
private bool GetIsAuth() =>
212+
private bool GetIsOauth() =>
214213
_yubiKeyApplication == YubiKeyApplication.Oath ||
215214
(_applicationId != null &&
216215
_applicationId.SequenceEqual(

0 commit comments

Comments
 (0)