Browse Source

Remove not needed null check for bits per sample

pull/1652/head
Brian Popow 5 years ago
parent
commit
22f4b7c12c
  1. 3
      src/ImageSharp/Formats/Tiff/TiffFrameMetadata.cs

3
src/ImageSharp/Formats/Tiff/TiffFrameMetadata.cs

@ -77,8 +77,7 @@ namespace SixLabors.ImageSharp.Formats.Tiff
{
if (profile != null)
{
ushort[] bitsPerSampleValue = profile.GetValue(ExifTag.BitsPerSample)?.Value;
if (bitsPerSampleValue != null && TiffBitsPerSample.TryParse(bitsPerSampleValue, out TiffBitsPerSample bitsPerSample))
if (TiffBitsPerSample.TryParse(profile.GetValue(ExifTag.BitsPerSample)?.Value, out TiffBitsPerSample bitsPerSample))
{
meta.BitsPerSample = bitsPerSample;
}

Loading…
Cancel
Save