Skip to content

Commit

Permalink
Removed unnecessary null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Sep 3, 2024
1 parent 2f261b6 commit 6b353d9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Magick.NET.SystemWindowsMedia/IMagickImageExtentions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ private static BitmapSource ToBitmapSource<TQuantumType>(this IMagickImage<TQuan

private static Density GetDefaultDensity(IMagickImage image, DensityUnit units)
{
Throw.IfNull(nameof(image), image);

if (units == DensityUnit.Undefined || (image.Density.X <= 0 || image.Density.Y <= 0))
return new Density(96);

Expand Down

0 comments on commit 6b353d9

Please sign in to comment.