From d4180a92c5b691cf082caba03b30de3e2c2262b4 Mon Sep 17 00:00:00 2001 From: Titus Date: Sat, 19 Feb 2022 13:59:20 -0500 Subject: [PATCH] cleaned up whitespace --- src/ImageSharp/Formats/Png/PngDecoderCore.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/Formats/Png/PngDecoderCore.cs b/src/ImageSharp/Formats/Png/PngDecoderCore.cs index 8d0b492611..56ad4ad86d 100644 --- a/src/ImageSharp/Formats/Png/PngDecoderCore.cs +++ b/src/ImageSharp/Formats/Png/PngDecoderCore.cs @@ -336,6 +336,14 @@ namespace SixLabors.ImageSharp.Formats.Png break; case PngChunkType.End: goto EOF; + + default: + if (this.colorMetadataOnly) + { + this.SkipChunkDataAndCrc(chunk); + } + + break; } } finally @@ -1398,8 +1406,6 @@ namespace SixLabors.ImageSharp.Formats.Png { chunk = new PngChunk(length, type); - this.SkipChunkDataAndCrc(chunk); - return true; }