File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ use Tempest\Console\Console;
1919use Tempest \Console \ConsoleApplication ;
2020use Tempest \Console \Exceptions \InterruptException ;
2121use Tempest \Http \Response ;
22- use Tempest \Http \Status ;
2322use Tempest \HttpClient \HttpClient ;
2423use 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}
You can’t perform that action at this time.
0 commit comments