From fb4ecff18e0e7bd3c8ac12064cfcdd885d19f613 Mon Sep 17 00:00:00 2001 From: Nicholas Mayne Date: Sun, 18 Oct 2015 20:52:52 +0100 Subject: [PATCH] Andout Count to Any and removing usings --- .../Orchard.Recipes/Commands/RecipesCommands.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Recipes/Commands/RecipesCommands.cs b/src/Orchard.Web/Modules/Orchard.Recipes/Commands/RecipesCommands.cs index ec73c22dc..2a5f488ae 100644 --- a/src/Orchard.Web/Modules/Orchard.Recipes/Commands/RecipesCommands.cs +++ b/src/Orchard.Web/Modules/Orchard.Recipes/Commands/RecipesCommands.cs @@ -1,11 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using Orchard.Commands; +using Orchard.Commands; using Orchard.Environment.Extensions; -using Orchard.Environment.Extensions.Models; -using Orchard.Recipes.Models; using Orchard.Recipes.Services; +using System; +using System.Linq; namespace Orchard.Recipes.Commands { public class RecipesCommands : DefaultOrchardCommandHandler { @@ -35,7 +32,7 @@ namespace Orchard.Recipes.Commands { } var recipes = _recipeHarvester.HarvestRecipes(extensionId); - if (recipes.Count() == 0) { + if (!recipes.Any()) { Context.Output.WriteLine(T("No recipes found for extension '{0}'.", extensionId)); return; }