Skip to content

Commit 78465fd

Browse files
committed
Remove unnecessary extractUri function
1 parent 988c53d commit 78465fd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/atlas.phpt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ Atlas Connectivity Tests
77
<?php
88
require_once __DIR__ . "/utils/basic.inc";
99

10-
function extractUri(string $env): ?string
11-
{
12-
return getenv($env) ?: null;
13-
}
14-
1510
function extractUriWithCertificate(string $env): ?array
1611
{
1712
$uri = getenv($env);
@@ -78,7 +73,7 @@ $x509Envs = [
7873

7974
foreach ($envs as $env) {
8075
echo $env, ': ';
81-
$uri = extractUri($env);
76+
$uri = getenv($env);
8277

8378
if (! is_string($uri)) {
8479
echo "FAIL: env var is undefined\n";

0 commit comments

Comments
 (0)