Skip to content

Commit

Permalink
Formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
inlined committed Apr 16, 2024
1 parent 1f12941 commit a635339
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/apphosting/index.ts
Expand Up @@ -41,7 +41,7 @@ async function tlsReady(url: string): Promise<boolean> {
// At the time of this writing, the error code is ERR_SSL_SSLV3_ALERT_HANDSHAKE_FAILURE.
// I've chosen to use a regexp in an attempt to be forwards compatible with new versions of
// SSL.
const maybeNodeError = err as { cause: { code: string }};
const maybeNodeError = err as { cause: { code: string } };
if (/HANDSHAKE_FAILURE/.test(maybeNodeError?.cause?.code)) {

Check warning on line 45 in src/apphosting/index.ts

View workflow job for this annotation

GitHub Actions / lint (20)

Use `String#includes()` method with a string instead
return false;
}
Expand Down Expand Up @@ -169,7 +169,7 @@ export async function doSetup(
},
});

if (!await tlsReady(url)) {
if (!(await tlsReady(url))) {
await promiseWithSpinner(() => awaitTlsReady(url), "Waiting for TLS certificate");
}

Expand Down Expand Up @@ -373,7 +373,8 @@ export async function orchestrateRollout(

logSuccess(
`Your rollout has been initiated; when it completes your backend will be available at ${url}. ` +
"You may now cancel this command or let it continue running to monitor progress");
"You may now cancel this command or let it continue running to monitor progress",
);

const rolloutPoll = poller.pollOperation<Rollout>({
...apphostingPollerOptions,
Expand All @@ -386,7 +387,10 @@ export async function orchestrateRollout(
operationResourceName: buildOp.name,
});

const [rollout, build] = await promiseWithSpinner(() => Promise.all([rolloutPoll, buildPoll]), "Waiting for rollout to complete");
const [rollout, build] = await promiseWithSpinner(
() => Promise.all([rolloutPoll, buildPoll]),
"Waiting for rollout to complete",
);

if (build.state !== "READY") {
if (!build.buildLogsUri) {
Expand Down

0 comments on commit a635339

Please sign in to comment.