From e0b881fe4bfd2eac762c56c9a457fe56687ef0b3 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 25 Mar 2013 23:55:27 -0700 Subject: [PATCH] fixed container registration. --- NzbDrone.Core/ContainerExtensions.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/NzbDrone.Core/ContainerExtensions.cs b/NzbDrone.Core/ContainerExtensions.cs index fede47272..45d8e4897 100644 --- a/NzbDrone.Core/ContainerExtensions.cs +++ b/NzbDrone.Core/ContainerExtensions.cs @@ -56,10 +56,7 @@ namespace NzbDrone.Core var appDataPath = environmentProvider.GetAppDataPath(); if (!Directory.Exists(appDataPath)) Directory.CreateDirectory(appDataPath); - container.Register(c => - { - return c.Resolve().Create(environmentProvider.GetNzbDroneDatabase()); - }).As().SingleInstance(); + container.Register(c => c.Resolve().Create(environmentProvider.GetNzbDroneDatabase())).As().SingleInstance(); container.RegisterGeneric(typeof(BasicRepository<>)).As(typeof(IBasicRepository<>)); }