* Stylecop Rules and Fixes
This commit is contained in:
Qstick
2020-01-03 07:49:24 -05:00
committed by GitHub
parent 63d669178d
commit f77a2feeef
1307 changed files with 8704 additions and 7404 deletions
+3 -3
View File
@@ -10,7 +10,6 @@ using NzbDrone.Common.Exceptions;
using NzbDrone.Common.Instrumentation;
using NzbDrone.Core.Datastore.Migration.Framework;
namespace NzbDrone.Core.Datastore
{
public interface IDbFactory
@@ -73,7 +72,7 @@ namespace NzbDrone.Core.Datastore
public IDatabase Create(MigrationContext migrationContext)
{
string connectionString;
switch (migrationContext.MigrationType)
{
case MigrationType.Main:
@@ -83,6 +82,7 @@ namespace NzbDrone.Core.Datastore
break;
}
case MigrationType.Log:
{
connectionString = _connectionStringFactory.LogDbConnectionString;
@@ -90,6 +90,7 @@ namespace NzbDrone.Core.Datastore
break;
}
default:
{
throw new ArgumentException("Invalid MigrationType");
@@ -111,7 +112,6 @@ namespace NzbDrone.Core.Datastore
private void CreateMain(string connectionString, MigrationContext migrationContext)
{
try
{
_restoreDatabaseService.Restore();