Skip to content

Commit

Permalink
Style fixes from pull request feeback
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrielv committed Feb 15, 2024
1 parent cf6b45f commit 90cf37d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GVFS/GVFS.Common/Git/GitAuthentication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ public void RejectCredentials(ITracer tracer, string credentialString)
{
lock (this.gitAuthLock)
{
var cachedCredentialAtStartOfReject = this.cachedCredentialString;
string cachedCredentialAtStartOfReject = this.cachedCredentialString;
// Don't stomp a different credential
if (credentialString == cachedCredentialAtStartOfReject && cachedCredentialAtStartOfReject != null)
{
// We can't assume that the credential store's cached credential is the same as the one we have.
// Reload the credential from the store to ensure we're rejecting the correct one.
var attemptsBeforeCheckingExistingCredential = this.numberOfAttempts;
int attemptsBeforeCheckingExistingCredential = this.numberOfAttempts;
if (this.TryCallGitCredential(tracer, out string getCredentialError))
{
if (this.cachedCredentialString != cachedCredentialAtStartOfReject)
Expand Down

0 comments on commit 90cf37d

Please sign in to comment.