From 5e3d538812793a952953e7bc1aa65010dd7538fa Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 26 Jan 2023 20:36:29 +0000 Subject: [PATCH] [ci] format --- packages/create-astro/src/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index 71c8a2ad5..b760ce9bf 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -301,10 +301,8 @@ export async function main() { // Add a check to see if there is already a .git directory and skip 'git init' if yes (with msg to output) const gitDir = './.git'; if (fs.existsSync(gitDir)) { - ora().info( - dim('A .git directory already exists. Skipping creating a new Git repository.') - ); - } else { + ora().info(dim('A .git directory already exists. Skipping creating a new Git repository.')); + } else { await execaCommand('git init', { cwd }); ora().succeed('Git repository created!'); }