Skip to content

Commit d58ace8

Browse files
committed
Update PngNormalizerTests.cs
1 parent 83f23b8 commit d58ace8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Tests/PngNormalizerTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ static byte[] BuildPngWithTextChunk(string keyword, string text)
249249
WriteChunk(ms, textType, textChunkData);
250250

251251
WriteChunk(ms, idatType, ZlibCompress([0, 255, 0, 0], CompressionLevel.Fastest));
252-
WriteChunk(ms, iendType, Array.Empty<byte>());
252+
WriteChunk(ms, iendType, []);
253253

254254
return ms.ToArray();
255255
}
@@ -280,5 +280,4 @@ static void WriteChunk(Stream stream, byte[] type, byte[] data)
280280
BinaryPrimitives.WriteUInt32BigEndian(crcBytes, crc.GetCurrentHashAsUInt32());
281281
stream.Write(crcBytes);
282282
}
283-
284283
}

0 commit comments

Comments
 (0)