From e0b921952848e87cabe2bdd55b05b7a8bb709891 Mon Sep 17 00:00:00 2001 From: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com> Date: Tue, 25 Feb 2020 14:27:58 +0100 Subject: [PATCH] Update MacroContent.cs to use `is` operator for comparison to null Co-Authored-By: Bjarke Berg --- src/Umbraco.Core/Macros/MacroContent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Core/Macros/MacroContent.cs b/src/Umbraco.Core/Macros/MacroContent.cs index f0ca8d6e9a..60dfb9210d 100644 --- a/src/Umbraco.Core/Macros/MacroContent.cs +++ b/src/Umbraco.Core/Macros/MacroContent.cs @@ -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();