Skip to content

Commit 5f44cd0

Browse files
committed
style: remove unnecessary blank lines and improve code formatting across multiple files
1 parent 861d3b7 commit 5f44cd0

File tree

55 files changed

+102
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+102
-104
lines changed

Yubico.Core/src/Yubico/Core/Devices/DeviceEventArgs.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ namespace Yubico.Core.Devices
3232
/// <typeparam name="TDevice">The specific type of <see cref="IDevice"/> this event argument represents.
3333
/// This type parameter is covariant, allowing for more specific device types to be used
3434
/// where a more general device type is expected.</typeparam>
35-
#pragma warning disable CA1711 // Identifiers should not have incorrect suffix
35+
#pragma warning disable CA1711 // Identifiers should not have incorrect suffix
3636
public interface IDeviceEventArgs<out TDevice> where TDevice : IDevice
37-
#pragma warning restore CA1711 // Identifiers should not have incorrect suffix
37+
#pragma warning restore CA1711 // Identifiers should not have incorrect suffix
3838
{
3939
/// <summary>
4040
/// Gets the specific type of <see cref="IDevice"/> that originated the event.

Yubico.Core/src/Yubico/Core/Devices/Hid/WindowsHidDeviceListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private static void ThrowIfFailed(CmErrorCode errorCode)
105105

106106
private static int OnEventReceived(IntPtr hNotify, IntPtr context, CM_NOTIFY_ACTION action, IntPtr eventDataPtr, int eventDataSize)
107107
{
108-
GCHandle thisPtr = GCHandle.FromIntPtr(context);
108+
var thisPtr = GCHandle.FromIntPtr(context);
109109
var thisObj = thisPtr.Target as WindowsHidDeviceListener;
110110
thisObj?._log.LogInformation("ConfigMgr callback received.");
111111

Yubico.YubiKey/src/Yubico/YubiKey/ConnectionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public IYubiKeyConnection CreateConnection(YubiKeyApplication application)
128128
WaitForReclaimTimeout(Transport.HidFido);
129129
return new FidoConnection(_hidFidoDevice);
130130
}
131-
131+
132132
if (_smartCardDevice != null)
133133
{
134134
_log.LogDebug("Connecting via the SmartCard interface.");

Yubico.YubiKey/src/Yubico/YubiKey/Cryptography/ECParametersExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static ECParameters DeepCopy(this ECParameters original)
4040
},
4141
D = original.D?.ToArray()
4242
};
43-
43+
4444
return copy;
4545
}
4646
}

Yubico.YubiKey/src/Yubico/YubiKey/Cryptography/ECPrivateKeyParameters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public ECPrivateKeyParameters(ECParameters parameters) : base(parameters)
5454
public ECPrivateKeyParameters(ECDsa ecdsaObject)
5555
: base(ecdsaObject?.ExportParameters(true) ?? throw new ArgumentNullException())
5656
{
57-
57+
5858
}
5959
}
6060
}

Yubico.YubiKey/src/Yubico/YubiKey/Cryptography/ECPublicKeyParameters.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public ECPublicKeyParameters(ECParameters parameters) : base(parameters)
5555
public ECPublicKeyParameters(ECDsa ecdsa)
5656
: base(ecdsa?.ExportParameters(false) ?? throw new ArgumentNullException(nameof(ecdsa)))
5757
{
58-
58+
5959
}
6060

6161
/// <summary>

Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Commands/GetCredentialMetadataResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public GetCredentialMetadataResponse(ResponseApdu responseApdu)
5858
public (int discoverableCredentialCount, int remainingCredentialCount) GetData()
5959
{
6060
var credentialManagementData = _response.GetData();
61-
if (!(credentialManagementData.NumberOfDiscoverableCredentials is null) &&
61+
if (!(credentialManagementData.NumberOfDiscoverableCredentials is null) &&
6262
!(credentialManagementData.RemainingCredentialCount is null))
6363
{
6464
return (credentialManagementData.NumberOfDiscoverableCredentials.Value, credentialManagementData.RemainingCredentialCount.Value);

Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Cose/CoseEdDsaPublicKey.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public static CoseEdDsaPublicKey CreateFromEncodedKey(ReadOnlyMemory<byte> encod
131131
Algorithm = (CoseAlgorithmIdentifier)map.ReadInt32(TagAlgorithm)
132132
};
133133
}
134-
134+
135135
/// <inheritdoc/>
136136
public override byte[] Encode()
137137
{

Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Fido2Session.CredMgmt.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public sealed partial class Fido2Session
9393
{
9494
IsPreview = isPreview
9595
};
96-
96+
9797
var response = Connection.SendCommand(command);
9898

9999
// If the error is PinAuthInvalid, try again.

Yubico.YubiKey/src/Yubico/YubiKey/Fido2/Fido2Session.GetAssertion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public IReadOnlyList<GetAssertionData> GetAssertions(GetAssertionParameters para
9898
{
9999
throw new ArgumentNullException(nameof(parameters));
100100
}
101-
101+
102102
var keyCollector = EnsureKeyCollector();
103103

104104
byte[] token = new byte[MaximumAuthTokenLength];

0 commit comments

Comments
 (0)