diff --git a/src/ImageSharp/Formats/Jxl/JxlThrowHelper.cs b/src/ImageSharp/Formats/Jxl/JxlThrowHelper.cs index 239d36cd01..a39dfe707c 100644 --- a/src/ImageSharp/Formats/Jxl/JxlThrowHelper.cs +++ b/src/ImageSharp/Formats/Jxl/JxlThrowHelper.cs @@ -7,8 +7,6 @@ namespace SixLabors.ImageSharp.Formats.Jxl; internal static class JxlThrowHelper { - private static readonly EndOfStreamException EndOfStream = new(); - [DoesNotReturn] - public static void ThrowEndOfStream() => throw EndOfStream; + public static void ThrowEndOfStream() => throw new EndOfStreamException(); }