From 3757a212c01cee03b8e96e1e9697a187ae7cc290 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Thu, 29 Feb 2024 05:27:46 +0000 Subject: [PATCH] [ci] format --- packages/db/src/core/cli/commands/login/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/db/src/core/cli/commands/login/index.ts b/packages/db/src/core/cli/commands/login/index.ts index 824a4760d67e..215d5723e158 100644 --- a/packages/db/src/core/cli/commands/login/index.ts +++ b/packages/db/src/core/cli/commands/login/index.ts @@ -1,8 +1,8 @@ +import { mkdir, writeFile } from 'node:fs/promises'; +import { createServer as _createServer } from 'node:http'; import type { AstroConfig } from 'astro'; import { listen } from 'async-listen'; import { cyan } from 'kleur/colors'; -import { mkdir, writeFile } from 'node:fs/promises'; -import { createServer as _createServer } from 'node:http'; import open from 'open'; import ora from 'ora'; import type { Arguments } from 'yargs-parser'; @@ -16,8 +16,7 @@ import { getAstroStudioUrl } from '../../../utils.js'; // 4. The temporary server receives and saves the session token, logging the user in // 5. The user is redirected one last time to a success/failure page async function createServer(): Promise<{ url: string; promise: Promise }> { - let resolve: (value: string | PromiseLike) => void, - reject: (reason?: Error) => void; + let resolve: (value: string | PromiseLike) => void, reject: (reason?: Error) => void; const server = _createServer((req, res) => { // Handle the request