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

Commit 9157a89

Browse files
Removing switch to main thread
This code is already running on the main thread
1 parent 4eff8ae commit 9157a89

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/AuthenticationView.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,9 @@ private void DoResult(bool success, string msg)
212212

213213
isBusy = false;
214214

215-
if (success == true)
215+
if (success)
216216
{
217-
new ActionTask(CancellationToken.None, () => {
218217
EntryPoint.ApplicationManager.UsageTracker.IncrementNumberOfAuthentications();
219-
}) { Affinity = TaskAffinity.UI }.Start();
220218

221219
Clear();
222220
Finish(true);

0 commit comments

Comments
 (0)