From d5e66252dc828d82f031569a29a1d2ff03b6a174 Mon Sep 17 00:00:00 2001 From: Stephan Date: Thu, 5 Jan 2017 09:25:30 +0100 Subject: [PATCH] U4-9337 - minor simplification --- .../XmlPublishedCache/PublishedContentCache.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs index 0b027deb92..d9b0363408 100644 --- a/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs +++ b/src/Umbraco.Web/PublishedCache/XmlPublishedCache/PublishedContentCache.cs @@ -172,15 +172,13 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache { var e = n as XmlElement; if (e == null) continue; - + var id = NavigateElementRoute(e, urlParts); if (id > 0) return id; } - if (urlParts.Length == 1) - return NavigateElementRoute(elt, urlParts); - - return -1; + if (urlParts.Length > 1) + return -1; } return NavigateElementRoute(elt, urlParts); @@ -205,7 +203,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache { var child = o as XmlElement; if (child == null) continue; - + var noNode = UseLegacySchema ? child.Name != "node" : child.GetAttributeNode("isDoc") == null;