Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit b816d1f

Browse files
author
Jasmine
committed
don't return the wait result, return the actual result
1 parent 44272c7 commit b816d1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitHub.VisualStudio/Menus/CopyLink.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ public async void Activate([AllowNull]object data = null)
4747

4848
public bool CanShow()
4949
{
50-
return IsGitHubRepo().Wait(250);
50+
Task<bool> githubRepoCheckTask = IsGitHubRepo();
51+
githubRepoCheckTask.Wait(250);
52+
return githubRepoCheckTask.Result;
5153
}
5254

5355
}

0 commit comments

Comments
 (0)