mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 20:30:41 +00:00
Fixing Async Deadlock
Adding missing ConfigureAwait + put on single line await & ConfigureAwait
This commit is contained in:
@@ -259,8 +259,7 @@ namespace Octokit
|
||||
try
|
||||
{
|
||||
var endpoint = ApiUrls.MergePullRequest(owner, name, number);
|
||||
return await ApiConnection.Put<PullRequestMerge>(endpoint, mergePullRequest, null,
|
||||
AcceptHeaders.SquashCommitPreview).ConfigureAwait(false);
|
||||
return await ApiConnection.Put<PullRequestMerge>(endpoint, mergePullRequest, null, AcceptHeaders.SquashCommitPreview).ConfigureAwait(false);
|
||||
}
|
||||
catch (ApiException ex)
|
||||
{
|
||||
@@ -292,8 +291,7 @@ namespace Octokit
|
||||
try
|
||||
{
|
||||
var endpoint = ApiUrls.MergePullRequest(repositoryId, number);
|
||||
return await ApiConnection.Put<PullRequestMerge>(endpoint, mergePullRequest, null,
|
||||
AcceptHeaders.SquashCommitPreview).ConfigureAwait(false);
|
||||
return await ApiConnection.Put<PullRequestMerge>(endpoint, mergePullRequest, null, AcceptHeaders.SquashCommitPreview).ConfigureAwait(false);
|
||||
}
|
||||
catch (ApiException ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user