Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f14d101

Browse files
Cleanup
1 parent f71eec2 commit f14d101

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/GitHub.Api/Git/Repository.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,15 @@ private void UpdateUserAndEmail()
493493
return;
494494
}
495495

496+
Func<Exception, bool> catchHandler = (ex) => {
497+
var managedCache = cacheContainer.GetCache(CacheType.GitUser);
498+
managedCache.CancelInvalidation();
499+
500+
return false;
501+
};
502+
496503
gitClient.GetConfigUserAndEmail()
504+
.Catch(catchHandler)
497505
.ThenInUI((success, value) =>
498506
{
499507
if (success)

src/UnityExtension/Assets/Editor/GitHub.Unity/ApplicationCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private void Invalidate()
223223

224224
public void CancelInvalidation()
225225
{
226-
Logger.Trace("CancelInvalidation");
226+
Logger.Warning("Cancelling Invalidation");
227227
isInvalidating = false;
228228
}
229229

src/tests/IntegrationTests/CachingClasses.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void InvalidateData()
145145

146146
public void CancelInvalidation()
147147
{
148-
Logger.Trace("CancelInvalidation");
148+
Logger.Warning("Cancelling Invalidation");
149149
isInvalidating = false;
150150
}
151151

0 commit comments

Comments
 (0)