Skip to content

Commit 7a5b025

Browse files
Styling fixes
1 parent 812fd03 commit 7a5b025

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Security/Authentication/Certificate/src/CertificateAuthenticationHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ private async Task<AuthenticateResult> ValidateCertificateAsync(X509Certificate2
158158
{
159159
// Disposing the chain does not dispose the elements we potentially built.
160160
// Do the full walk manually to dispose.
161-
for (int chainElementIndex = 0; chainElementIndex < chain.ChainElements.Count; ++chainElementIndex)
161+
for (var i = 0; i < chain.ChainElements.Count; i++)
162162
{
163-
chain.ChainElements[chainElementIndex].Certificate.Dispose();
163+
chain.ChainElements[i].Certificate.Dispose();
164164
}
165165

166166
chain.Dispose();

src/Shared/CertificateGeneration/UnixCertificateManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ public override TrustLevel GetTrustLevel(X509Certificate2 certificate)
8282
{
8383
// Disposing the chain does not dispose the elements we potentially built.
8484
// Do the full walk manually to dispose.
85-
for (int chainElementIndex = 0; chainElementIndex < chain.ChainElements.Count; ++chainElementIndex)
85+
for (var i = 0; i < chain.ChainElements.Count; i++)
8686
{
87-
chain.ChainElements[chainElementIndex].Certificate.Dispose();
87+
chain.ChainElements[i].Certificate.Dispose();
8888
}
8989

9090
chain.Dispose();

0 commit comments

Comments
 (0)