Skip to content

Commit f781c53

Browse files
committed
clean: make QuantizeSettings.CreateInstance parameter non nullable
1 parent 32edbce commit f781c53

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Magick.NET/Native/Settings/QuantizeSettings.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,8 @@ public void SetTreeDepth(int value)
232232
#endif
233233
}
234234
}
235-
internal static INativeInstance CreateInstance(IQuantizeSettings? instance)
235+
internal static INativeInstance CreateInstance(IQuantizeSettings instance)
236236
{
237-
if (instance is null)
238-
return NativeInstance.Zero;
239237
return QuantizeSettings.CreateNativeInstance(instance);
240238
}
241239
}

0 commit comments

Comments
 (0)