From 635ebcb9be8fba31671e6e3e7d92523c540255e7 Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Fri, 5 Apr 2013 00:40:03 +0600 Subject: [PATCH] removed error check as this was causing errors --- src/Umbraco.Web/umbraco.presentation/macro.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Umbraco.Web/umbraco.presentation/macro.cs b/src/Umbraco.Web/umbraco.presentation/macro.cs index 56f651685b..e6b420347d 100644 --- a/src/Umbraco.Web/umbraco.presentation/macro.cs +++ b/src/Umbraco.Web/umbraco.presentation/macro.cs @@ -133,19 +133,13 @@ namespace umbraco public macro(int id) { Macro m = Macro.GetById(id); - if (m != null) - { - Model = new MacroModel(m); - } + Model = new MacroModel(m); } public macro(string alias) { Macro m = Macro.GetByAlias(alias); - if (m != null) - { - Model = new MacroModel(m); - } + Model = new MacroModel(m); } public MacroModel Model { get; set; }