drop unnecessary awaits and specify ConfigureAwait otherwise for other core clients

This commit is contained in:
Brendan Forster
2016-04-06 20:09:59 -04:00
parent cc834b1385
commit d3c43b77a9
6 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -95,7 +95,7 @@ namespace Octokit
var endpoint = ApiUrls.UserAdministrationAuthorization(login);
var response = ((HttpStatusCode)await Connection.Delete(endpoint));
var response = await Connection.Delete(endpoint).ConfigureAwait(false);
if (response != HttpStatusCode.NoContent)
{
throw new ApiException("Invalid Status Code returned. Expected a 204", response);
@@ -196,7 +196,7 @@ namespace Octokit
Ensure.ArgumentNotNullOrEmptyString(login, "login");
var endpoint = ApiUrls.UserAdministration(login);
var response = ((HttpStatusCode)await Connection.Delete(endpoint));
var response = await Connection.Delete(endpoint).ConfigureAwait(false);
if (response != HttpStatusCode.NoContent)
{
throw new ApiException("Invalid Status Code returned. Expected a 204", response);
@@ -219,7 +219,7 @@ namespace Octokit
Ensure.ArgumentNotNull(keyId, "keyId");
var endpoint = ApiUrls.UserAdministrationPublicKeys(keyId);
var response = ((HttpStatusCode)await Connection.Delete(endpoint));
var response = await Connection.Delete(endpoint).ConfigureAwait(false);
if (response != HttpStatusCode.NoContent)
{
throw new ApiException("Invalid Status Code returned. Expected a 204", response);