mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-31 18:13:21 +00:00
Added ConfigureAwait(false) to prevent deadlocks when used in a sync context
This commit is contained in:
@@ -118,7 +118,9 @@ namespace Octokit
|
||||
|
||||
try
|
||||
{
|
||||
return await ApiConnection.Put<PullRequestMerge>(ApiUrls.MergePullRequest(owner, name, number), mergePullRequest);
|
||||
return await ApiConnection
|
||||
.Put<PullRequestMerge>(ApiUrls.MergePullRequest(owner, name, number), mergePullRequest)
|
||||
.ConfigureAwait(false);
|
||||
}
|
||||
catch (ApiException ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user