Remove unnecessary IsNull functions

This commit is contained in:
Haselnussbomber 2025-07-17 01:42:20 +02:00
parent 54ec64e159
commit 9956424c13
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1
5 changed files with 17 additions and 31 deletions

View file

@ -182,7 +182,7 @@ internal abstract class FontHandle : IFontHandle
}
var fontPtr = substance.GetFontPtr(this);
if (fontPtr.IsNull())
if (fontPtr.IsNull)
{
// The font for the requested handle is unavailable. Release the reference and try again.
substance.DataRoot.Release();