diff --git a/src/ImageSharp/PixelFormats/HalfTypeHelper.cs b/src/ImageSharp/PixelFormats/HalfTypeHelper.cs index f83f23271b..02936f1602 100644 --- a/src/ImageSharp/PixelFormats/HalfTypeHelper.cs +++ b/src/ImageSharp/PixelFormats/HalfTypeHelper.cs @@ -16,10 +16,7 @@ internal static class HalfTypeHelper /// The float to pack /// The [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static ushort Pack(float value) - { - return BitConverter.HalfToUInt16Bits((Half)value); - } + internal static ushort Pack(float value) => BitConverter.HalfToUInt16Bits((Half)value); /// /// Unpacks a into a .