Update MacroContent.cs to use is operator for comparison to null

Co-Authored-By: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Elitsa Marinovska
2020-02-25 14:27:58 +01:00
committed by GitHub
parent 02fbf0f9e7
commit e0b9219528

View File

@@ -12,7 +12,7 @@ namespace Umbraco.Web.Macros
public DateTime Date { get; set; } = DateTime.Now;
// a value indicating whether the content is empty
public bool IsEmpty => Text == null;
public bool IsEmpty => Text is null;
// gets an empty macro content
public static MacroContent Empty { get; } = new MacroContent();