File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Security/Authentication/Certificate/src
Shared/CertificateGeneration Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments