Skip to content

Commit

Permalink
fix spelling (dotnet#58593)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfurt authored Sep 3, 2021
1 parent 19eba6b commit ee0f1f1
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,20 +212,20 @@ static void ShrinkCredentialCache()

for (int i = 0; i < toRemoveAttempt.Length; ++i)
{
SafeCredentialReference? cahced = toRemoveAttempt[i].Value;
SafeFreeCredentials? creds = cahced.Target;
SafeCredentialReference? cached = toRemoveAttempt[i].Value;
SafeFreeCredentials? creds = cached.Target;

if (creds == null)
{
s_cachedCreds.TryRemove(toRemoveAttempt[i].Key, out _);
continue;
}

cahced.Dispose();
cahced = SafeCredentialReference.CreateReference(creds);
if (cahced != null)
cached.Dispose();
cached = SafeCredentialReference.CreateReference(creds);
if (cached != null)
{
s_cachedCreds[toRemoveAttempt[i].Key] = cahced;
s_cachedCreds[toRemoveAttempt[i].Key] = cached;
}
else
{
Expand Down

0 comments on commit ee0f1f1

Please sign in to comment.