Skip to content

Commit 20cb366

Browse files
committed
Removed stray #If
1 parent e785713 commit 20cb366

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

src/Tests/DatabaseSupportTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#if !NETCORE
2-
using System;
3-
using DbUp.Builder;
1+
using DbUp.Builder;
42
using DbUp.Tests.Common;
53

64
namespace DbUp.Postgresql.Tests;
@@ -21,4 +19,3 @@ protected override UpgradeEngineBuilder AddCustomNamedJournalToBuilder(UpgradeEn
2119
=> new PostgresqlTableJournal(connectionManagerFactory, logFactory, schema, tableName)
2220
);
2321
}
24-
#endif

src/Tests/NoPublicApiChanges.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if !NETCORE
2-
using DbUp.Tests.Common;
1+
using DbUp.Tests.Common;
32

43
namespace DbUp.Postgresql.Tests;
54

@@ -10,4 +9,3 @@ public NoPublicApiChanges()
109
{
1110
}
1211
}
13-
#endif

src/dbup-postgresql/PostgresqlScriptExecutor.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ protected override void ExecuteCommandsWithinExceptionHandler(int index, SqlScri
3636
{
3737
executeCommand();
3838
}
39-
#if NPGSQLv2
40-
catch (NpgsqlException exception)
41-
#else
4239
catch (PostgresException exception)
43-
#endif
4440
{
4541
Log().LogInformation("Npgsql exception has occurred in script: '{0}'", script.Name);
4642
Log().LogError("Script block number: {0}; Block line {1}; Position: {2}; Message: {3}", index, exception.Line, exception.Position, exception.Message);

0 commit comments

Comments
 (0)