Fix SA1026CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation (#13249)

See https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1026.md
This commit is contained in:
xtqqczze 2020-07-23 18:19:15 +01:00 committed by GitHub
parent f6f966b3dc
commit 6ca0024db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ namespace System.Management.Automation.Internal
private static byte[] GetBytesLE(int val)
{
return new [] {
return new[] {
(byte)(val & 0xff),
(byte)((val >> 8) & 0xff),
(byte)((val >> 16) & 0xff),

View File

@ -22,7 +22,7 @@ namespace mvc.Controllers
using (var compressedStream = new DeflateStream(responseStream, CompressionLevel.Fastest))
{
httpContext.Response.Headers.Add("Content-Encoding", new [] { "deflate" });
httpContext.Response.Headers.Add("Content-Encoding", new[] { "deflate" });
memoryStream.Seek(0, SeekOrigin.Begin);
await memoryStream.CopyToAsync(compressedStream);
}

View File

@ -22,7 +22,7 @@ namespace mvc.Controllers
using (var compressedStream = new GZipStream(responseStream, CompressionLevel.Fastest))
{
httpContext.Response.Headers.Add("Content-Encoding", new [] { "gzip" });
httpContext.Response.Headers.Add("Content-Encoding", new[] { "gzip" });
memoryStream.Seek(0, SeekOrigin.Begin);
await memoryStream.CopyToAsync(compressedStream);
}