Skip to content

Commit 4216f3b

Browse files
committed
Remove unnecessary conditionals in TAP helper file
Since we already check for larger than 14 we do not need to check for inverse in the else clause.
1 parent ba5e286 commit 4216f3b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

t/pgsm.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ sub pgsm_init_pg
5252
$pg_node = PostgreSQL::Test::Cluster->new('pgsm_regression');
5353
}
5454
# For Server version 14 & below, spawn the server using PostgresNode
55-
elsif ($PG_MAJOR_VERSION < 15)
55+
else
5656
{
5757
$pg_node = PostgresNode->get_new_node('pgsm_regression');
5858
}
@@ -73,7 +73,7 @@ sub append_to_file
7373
$str . "\n");
7474
}
7575
# For Server version 14 & below, use PostgresNode to write to files
76-
elsif ($PG_MAJOR_VERSION < 15)
76+
else
7777
{
7878
TestLib::append_to_file($out_filename_with_path, $str . "\n");
7979
}
@@ -94,7 +94,7 @@ sub append_to_debug_file
9494
$str . "\n");
9595
}
9696
# For Server version 14 & below, use PostgresNode to write to files
97-
elsif ($PG_MAJOR_VERSION < 15)
97+
else
9898
{
9999
TestLib::append_to_file($debug_out_filename_with_path, $str . "\n");
100100
}

0 commit comments

Comments
 (0)