Skip to content

Commit

Permalink
Silenced another warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 12, 2023
1 parent 39d51dd commit 917d113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Magick.NET/ImageOptimizers/ImageOptimizerHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ internal static class ImageOptimizerHelper
{
public static void CheckFormat(IMagickImage<QuantumType> image, MagickFormat expectedFormat)
{
var format = image.FormatInfo?.ModuleFormat;
var format = MagickFormatInfo.Create(image.Format)?.ModuleFormat;
if (format != expectedFormat)
throw new MagickCorruptImageErrorException("Invalid image format: " + format.ToString());
}
Expand Down

0 comments on commit 917d113

Please sign in to comment.