Skip to content

Commit

Permalink
Bug: Removed extra call to FindSiteMapNode from within the FindSiteMa…
Browse files Browse the repository at this point in the history
…pNodeFromKey method, since the url table is not likely to contain a URL that corresponds to a key.
  • Loading branch information
NightOwl888 committed Mar 28, 2014
1 parent 8911773 commit 52342e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MvcSiteMapProvider/MvcSiteMapProvider/SiteMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ public virtual ISiteMapNode FindSiteMapNode(ControllerContext context)

public virtual ISiteMapNode FindSiteMapNodeFromKey(string key)
{
ISiteMapNode node = this.FindSiteMapNode(key);
if (node == null && this.keyTable.ContainsKey(key))
ISiteMapNode node = null;
if (this.keyTable.ContainsKey(key))
{
node = this.keyTable[key];
}
Expand Down

0 comments on commit 52342e5

Please sign in to comment.