some r# cleanup

This commit is contained in:
Shannon
2015-12-22 17:25:09 +01:00
parent 5af839693c
commit 0b13e18fd5
37 changed files with 59 additions and 71 deletions

View File

@@ -41,7 +41,7 @@ namespace Umbraco.Web.Trees
//find all tree definitions that have the current application alias
var appTrees = ApplicationContext.Current.Services.ApplicationTreeService.GetApplicationTrees(application, true).ToArray();
if (appTrees.Count() == 1 || string.IsNullOrEmpty(tree) == false )
if (appTrees.Length == 1 || string.IsNullOrEmpty(tree) == false )
{
var apptree = string.IsNullOrEmpty(tree) == false
? appTrees.SingleOrDefault(x => x.Alias == tree)