1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

Changed all C# control flow block statements to include space between keyword and open paren

This commit is contained in:
Chad Scharf
2020-03-27 14:36:37 -04:00
parent 943aea9a12
commit 9800b752c0
243 changed files with 2258 additions and 2258 deletions

View File

@ -27,12 +27,12 @@ namespace Bit.Migrator
public bool MigrateMsSqlDatabase(bool enableLogging = true,
CancellationToken cancellationToken = default(CancellationToken))
{
if(enableLogging && _logger != null)
if (enableLogging && _logger != null)
{
_logger.LogInformation(Constants.BypassFiltersEventId, "Migrating database.");
}
using(var connection = new SqlConnection(_masterConnectionString))
using (var connection = new SqlConnection(_masterConnectionString))
{
var command = new SqlCommand(
"IF ((SELECT COUNT(1) FROM sys.databases WHERE [name] = 'vault') = 0) " +
@ -47,7 +47,7 @@ namespace Bit.Migrator
}
cancellationToken.ThrowIfCancellationRequested();
using(var connection = new SqlConnection(_connectionString))
using (var connection = new SqlConnection(_connectionString))
{
// Rename old migration scripts to new namespace.
var command = new SqlCommand(
@ -67,9 +67,9 @@ namespace Bit.Migrator
.WithTransaction()
.WithExecutionTimeout(new TimeSpan(0, 5, 0));
if(enableLogging)
if (enableLogging)
{
if(_logger != null)
if (_logger != null)
{
builder.LogTo(new DbUpLogger(_logger));
}
@ -82,9 +82,9 @@ namespace Bit.Migrator
var upgrader = builder.Build();
var result = upgrader.PerformUpgrade();
if(enableLogging && _logger != null)
if (enableLogging && _logger != null)
{
if(result.Successful)
if (result.Successful)
{
_logger.LogInformation(Constants.BypassFiltersEventId, "Migration successful.");
}