Update MacroContent.cs to use is operator for comparison to null
Co-Authored-By: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
committed by
GitHub
parent
02fbf0f9e7
commit
e0b9219528
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user