Skip to content

Commit 38ec87b

Browse files
committed
Avoid duplicate check.
1 parent 58bf73e commit 38ec87b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/Magick.NET/MagickImage.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3453,11 +3453,7 @@ public void ImportIndexedPixels(uint width, uint height, IReadOnlyList<IMagickCo
34533453
/// <param name="settings">The import settings to use when importing the pixels.</param>
34543454
/// <exception cref="MagickException">Thrown when an error is raised by ImageMagick.</exception>
34553455
public void ImportPixels(byte[] data, IPixelImportSettings settings)
3456-
{
3457-
Throw.IfNullOrEmpty(data);
3458-
3459-
ImportPixels(data, 0, settings);
3460-
}
3456+
=> ImportPixels(data, 0, settings);
34613457

34623458
/// <summary>
34633459
/// Import pixels from the specified byte array into the current image.

0 commit comments

Comments
 (0)