Skip to content

Commit 90dd7da

Browse files
authored
chore: update release script (#1399)
1 parent 98bf1a2 commit 90dd7da

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/release

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use Tempest\Console\Console;
1919
use Tempest\Console\ConsoleApplication;
2020
use Tempest\Console\Exceptions\InterruptException;
2121
use Tempest\Http\Response;
22-
use Tempest\Http\Status;
2322
use Tempest\HttpClient\HttpClient;
2423
use Tempest\Support\Json;
2524

@@ -186,7 +185,7 @@ function updateBranchProtection(bool $enabled): void
186185
body: Json\encode(['enforcement' => $enabled ? 'active' : 'disabled']),
187186
);
188187

189-
if ($response->status->isSuccessful()) {
188+
if (! $response->status->isSuccessful()) {
190189
throw new Exception('Failed to update branch ruleset.');
191190
}
192191
}
@@ -208,7 +207,7 @@ function triggerSubsplit(): Response
208207
body: Json\encode(['ref' => 'main']),
209208
);
210209

211-
if ($response->status->isSuccessful()) {
210+
if (! $response->status->isSuccessful()) {
212211
throw new Exception('Failed to update branch ruleset.');
213212
}
214213
}

0 commit comments

Comments
 (0)