mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-27 03:46:23 +08:00
Fix SA1026CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation (#13249)
See https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1026.md
This commit is contained in:
parent
f6f966b3dc
commit
6ca0024db9
@ -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),
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user