Skip to content

Commit cb8bfd1

Browse files
author
Dirk Lemstra
committed
Use Assert instead of null check because this class is internal.
1 parent 135e086 commit cb8bfd1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Source/Magick.NET/Core/Drawables/PointInfo.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
//=================================================================================================
1414

1515
using System.Collections.Generic;
16+
using System.Diagnostics;
1617

1718
namespace ImageMagick
1819
{
@@ -42,8 +43,8 @@ public int Count
4243

4344
public void Dispose()
4445
{
45-
if (_NativeInstance != null)
46-
_NativeInstance.Dispose();
46+
Debug.Assert(_NativeInstance != null);
47+
_NativeInstance.Dispose();
4748
}
4849
}
4950
}

0 commit comments

Comments
 (0)