From 452c03fa6fc629a06012f52ac150fd8a03b2fdd3 Mon Sep 17 00:00:00 2001 From: Nicholas Mayne Date: Sun, 18 Oct 2015 20:43:54 +0100 Subject: [PATCH] Changing Count for Any --- .../Modules/Orchard.Setup/Controllers/SetupController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs b/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs index 8c2eb4687..d12586da6 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs +++ b/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs @@ -49,7 +49,7 @@ namespace Orchard.Setup.Controllers { var recipes = _setupService.Recipes().ToList(); string recipeDescription = null; - if (recipes.Count > 0) { + if (recipes.Any()) { recipeDescription = recipes[0].Description; }