Skip to content

Commit 6ca0024

Browse files
authored
Fix SA1026CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation (PowerShell#13249)
See https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1026.md
1 parent f6f966b commit 6ca0024

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/System.Management.Automation/utils/CryptoUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private static uint ToUInt32LE(byte[] bytes, int offset)
7474

7575
private static byte[] GetBytesLE(int val)
7676
{
77-
return new [] {
77+
return new[] {
7878
(byte)(val & 0xff),
7979
(byte)((val >> 8) & 0xff),
8080
(byte)((val >> 16) & 0xff),

test/tools/WebListener/DeflateFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public override async Task OnResultExecutionAsync( ResultExecutingContext contex
2222

2323
using (var compressedStream = new DeflateStream(responseStream, CompressionLevel.Fastest))
2424
{
25-
httpContext.Response.Headers.Add("Content-Encoding", new [] { "deflate" });
25+
httpContext.Response.Headers.Add("Content-Encoding", new[] { "deflate" });
2626
memoryStream.Seek(0, SeekOrigin.Begin);
2727
await memoryStream.CopyToAsync(compressedStream);
2828
}

test/tools/WebListener/GzipFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public override async Task OnResultExecutionAsync( ResultExecutingContext contex
2222

2323
using (var compressedStream = new GZipStream(responseStream, CompressionLevel.Fastest))
2424
{
25-
httpContext.Response.Headers.Add("Content-Encoding", new [] { "gzip" });
25+
httpContext.Response.Headers.Add("Content-Encoding", new[] { "gzip" });
2626
memoryStream.Seek(0, SeekOrigin.Begin);
2727
await memoryStream.CopyToAsync(compressedStream);
2828
}

0 commit comments

Comments
 (0)