diff --git a/Migrations.cs b/Migrations.cs index c63f5f2..81b94f3 100644 --- a/Migrations.cs +++ b/Migrations.cs @@ -81,10 +81,7 @@ namespace DbTools { try { using (var cmd = dbConnection.CreateCommand()) { cmd.CommandText = File.ReadAllText(migration); - if (cmd.ExecuteNonQuery() > 0) { - wasSuccessful = true; - } - wasSuccessful = false; + wasSuccessful = cmd.ExecuteNonQuery() > 0; } } catch (Exception ex) { error = ex;