Browse Source

cleaned up whitespace

pull/2019/head
Titus 4 years ago
parent
commit
d4180a92c5
  1. 10
      src/ImageSharp/Formats/Png/PngDecoderCore.cs

10
src/ImageSharp/Formats/Png/PngDecoderCore.cs

@ -336,6 +336,14 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case PngChunkType.End: case PngChunkType.End:
goto EOF; goto EOF;
default:
if (this.colorMetadataOnly)
{
this.SkipChunkDataAndCrc(chunk);
}
break;
} }
} }
finally finally
@ -1398,8 +1406,6 @@ namespace SixLabors.ImageSharp.Formats.Png
{ {
chunk = new PngChunk(length, type); chunk = new PngChunk(length, type);
this.SkipChunkDataAndCrc(chunk);
return true; return true;
} }

Loading…
Cancel
Save