Fixed the spacing

Fixed the spacing of comma and aligned the arguments.
This commit is contained in:
Naveen
2015-10-21 10:06:06 -04:00
parent 1886629e6f
commit aa44aa0da5
+5 -5
View File
@@ -73,8 +73,9 @@ namespace Octokit.Internal
// We added support for downloading images,zip-files and application/octet-stream.
// Let's constrain this appropriately.
var binaryContentTypes = new[] {"application/zip"
,"application/x-gzip",
var binaryContentTypes = new[] {
"application/zip" ,
"application/x-gzip" ,
"application/octet-stream"};
using (var content = responseMessage.Content)
@@ -83,9 +84,8 @@ namespace Octokit.Internal
{
contentType = GetContentMediaType(responseMessage.Content);
if (contentType != null && (contentType.StartsWith("image/") ||
binaryContentTypes
.Any(item => item.Equals(contentType,StringComparison.OrdinalIgnoreCase))))
if (contentType != null && (contentType.StartsWith("image/") || binaryContentTypes
.Any(item => item.Equals(contentType, StringComparison.OrdinalIgnoreCase))))
{
responseBody = await responseMessage.Content.ReadAsByteArrayAsync().ConfigureAwait(false);
}