Skip to content

Commit

Permalink
Removed stray #If
Browse files Browse the repository at this point in the history
  • Loading branch information
droyad committed Jul 26, 2024
1 parent e785713 commit 20cb366
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
5 changes: 1 addition & 4 deletions src/Tests/DatabaseSupportTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#if !NETCORE
using System;
using DbUp.Builder;
using DbUp.Builder;
using DbUp.Tests.Common;

namespace DbUp.Postgresql.Tests;
Expand All @@ -21,4 +19,3 @@ protected override UpgradeEngineBuilder AddCustomNamedJournalToBuilder(UpgradeEn
=> new PostgresqlTableJournal(connectionManagerFactory, logFactory, schema, tableName)
);
}
#endif
4 changes: 1 addition & 3 deletions src/Tests/NoPublicApiChanges.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if !NETCORE
using DbUp.Tests.Common;
using DbUp.Tests.Common;

namespace DbUp.Postgresql.Tests;

Expand All @@ -10,4 +9,3 @@ public NoPublicApiChanges()
{
}
}
#endif
4 changes: 0 additions & 4 deletions src/dbup-postgresql/PostgresqlScriptExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ protected override void ExecuteCommandsWithinExceptionHandler(int index, SqlScri
{
executeCommand();
}
#if NPGSQLv2
catch (NpgsqlException exception)
#else
catch (PostgresException exception)
#endif
{
Log().LogInformation("Npgsql exception has occurred in script: '{0}'", script.Name);
Log().LogError("Script block number: {0}; Block line {1}; Position: {2}; Message: {3}", index, exception.Line, exception.Position, exception.Message);
Expand Down

0 comments on commit 20cb366

Please sign in to comment.